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



default_content › WordPress过滤钩子

Since1.5.0
已弃用n/a
› apply_filters( 'default_content', $post_content, $post )
参数: (2)
  • () post_content Default post content.
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

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





源码

$post->post_content = (string) apply_filters( 'default_content', $post_content, $post );