wp_required_field_indicator

过滤钩子


apply_filters( 'wp_required_field_indicator', $indicator )
参数
  • (string)
    $indicator
    Markup for the indicator element.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 5185
引入
6.1.0
弃用

Filters the markup for a visual indicator of required form fields.

return apply_filters( 'wp_required_field_indicator', $indicator );