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



single_post_title › WordPress过滤钩子

Since0.71
已弃用n/a
apply_filters( 'single_post_title', $_post->post_title, $_post )
参数: (2)
  • (string) $_post_title The single post page title.
    Required: Yes
  • (WP_Post) $_post The current post.
    Required: Yes
定义在:
文档:

Filters the page title for a single post.





源码

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