WordPress开发者和主题制作者的搜索引擎



single_post_title ›

Since0.71
已弃用n/a
apply_filters( 'single_post_title', $_post->post_title, $_post )
参数: (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
定义在:
文档:

Filters the page title for a single post.





源码

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