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



default_title ›

Since1.5.0
已弃用n/a
apply_filters( 'default_title', $post_title, $post )
参数: (2)
  • (string) $post_title Default post title.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
定义在:
文档:

Filters the default post title initially used in the "Write Post" form.





源码

$post->post_title = (string) apply_filters( 'default_title', $post_title, $post );