wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_required_field_indicator › WordPress Function
Since6.1.0
Deprecatedn/a
› wp_required_field_indicator ( No parameters )
Returns: |
|
Defined at: |
|
Codex: |
Assigns a visual indicator for required form fields.
Related Functions: wp_required_field_message, wp_prepare_site_data, wp_referer_field, wp_redirect_admin_locations, wp_resource_hints
Source
function wp_required_field_indicator() { /* translators: Character to identify required form fields. */ $glyph = __( '*' ); $indicator = '<span class="required">' . esc_html( $glyph ) . '</span>'; /** * Filters the markup for a visual indicator of required form fields. * * @since 6.1.0 * * @param string $indicator Markup for the indicator element. */ return apply_filters( 'wp_required_field_indicator', $indicator ); }