single_post_title WordPress Filter Hook
The single_post_title hook is a great way to change the title of your post on the single post page. This can be useful if you want to change the title based on the content of the post, or if you want to add some extra information to the title.
apply_filters( 'single_post_title', string $_post_title , WP_Post $_post ) #
Filters the page title for a single post.
Parameters
- $_post_title
(string)The single post page title.
- $_post
(WP_Post)The current post.
Source
Changelog
Version | Description |
---|---|
0.71 | Introduced. |