wp_required_field_message()
Creates a message to explain required form fields.
Хуки из функции
Возвращает
Строку
. Message text and glyph wrapped in a span tag.
Использование
wp_required_field_message();
Список изменений
С версии 6.1.0 | Введена. |
Код wp_required_field_message() wp required field message WP 6.7.1
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 ); }