apply_filters( 'the_title', string $title, int $id )

Filters the post title.

Parameters

$title

(string) The post title.

$id

(int) The post ID.

More Information

the_title is a filter applied to the post title retrieved from the database, prior to printing on the screen. In some cases (such as when the_title is used), the title can be suppressed by returning a false value (e.g. NULL, FALSE or the empty string) from the filter function.

Source

File: wp-includes/post-template.php

View on Trac

Changelog

Version Description
0.71 Introduced.

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