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



default_excerpt ›

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

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





源码

$post->post_excerpt = (string) apply_filters( 'default_excerpt', $post_excerpt, $post );