wp_required_field_message() – Creates a message to explain required form fields.
You appear to be a bot. Output may be restricted
Description
Creates a message to explain required form fields.
Usage
$string = wp_required_field_message();
Parameters
Returns
string Message text and glyph wrapped in a span
tag.
Source
File name: wordpress/wp-includes/general-template.php
Lines:
1 to 16 of 16
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 ); }