W3cubDocs

/WordPress

apply_filters( ‘enter_title_here’, string $text, WP_Post $post )

Filters the title field placeholder text.

Parameters

$textstring
Placeholder text. Default ‘Add title’.
$postWP_Post
Post object.

Source

$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );

Changelog

Version Description
3.1.0 Introduced.

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