wp-includes/general-template.php:5367Creates a message to explain required form fields.
stringOne hook fires while wp_required_field_message() runs, in this order:
Filters the message to explain required form fields.
function wp_required_field_message() { $message = sprintf( '<span class="required-field-message">%s</span>', /* translators: %s: Asterisk symbol (*). */ sprintf( __( 'Required fields are marked %s' ), wp_required_field_indicator() ) ); /** * Filters the message to explain required form fields. * * @since 6.1.0 * * @param string $message Message text and glyph wrapped in a `span` tag. */ return apply_filters( 'wp_required_field_message', $message );}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.