enter_title_here WordPress Filter Hook

The enter_title_here hook is a great way to change the default title text for a Wordpress post. This can be really useful if you want to make your site more user-friendly or if you want to change the way the title appears in the search results.

apply_filters( 'enter_title_here', string $text, WP_Post $post ) #

Filters the title field placeholder text.


Parameters

$text

(string)Placeholder text. Default 'Add title'.

$post

(WP_Post)Post object.


Top ↑

Source

File: wp-admin/edit-form-advanced.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.