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



post_type_labels_{$post_type} ›

Since3.5.0
已弃用n/a
apply_filters( "post_type_labels_{$post_type}", $labels )
参数:
  • (object) $labels Object with labels for the post type as member variables.
    Required: Yes
查看:
  • get_post_type_labels()
定义在:
文档:

Filters the labels of a specific post type.

The dynamic portion of the hook name, $post_type, refers to the post type slug.





源码

$labels = apply_filters( "post_type_labels_{$post_type}", $labels );