wp-includes/general-template.php:5345Assigns a visual indicator for required form fields.
stringOne hook fires while wp_required_field_indicator() runs, in this order:
Filters the markup for a visual indicator of required form fields.
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 );}Introduced in 6.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/general-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.