A WordPress-centric search engine for devs and theme authors



single_post_title ›

Since0.71
Deprecatedn/a
apply_filters( 'single_post_title', $_post->post_title, $_post )
Parameters: (2)
  • (string) $_post_title The single post page title.
    Required: Yes
  • (object) $_post The current queried object as returned by get_queried_object().
    Required: Yes
Defined at:
Codex:

Filters the page title for a single post.





Source

$title = apply_filters( 'single_post_title', $_post->post_title, $_post );