W3cubDocs

/WordPress

apply_filters( ‘wp_required_field_message’, string $message )

Filters the message to explain required form fields.

Parameters

$messagestring
Message text and glyph wrapped in a span tag.

Source

return apply_filters( 'wp_required_field_message', $message );

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_required_field_message