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



protected_title_format › WordPress过滤钩子

Since2.8.0
已弃用n/a
› apply_filters( 'protected_title_format', $prepend, $post )
参数: (2)
  • () prepend Text displayed before the post title. Default 'Protected: %s'.
    Required: Yes
  • () post Current post object.
    Required: Yes
定义在:
文档:

Filters the text prepended to the post title for protected posts.

The filter is only applied on the front end.




源码

$protected_title_format = apply_filters( 'protected_title_format', $prepend, $post );