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



display_post_states › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'display_post_states', $post_states, $post )
参数: (2)
  • () post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    Required: Yes
  • () post The current post object.
    Required: Yes
定义在:
文档:

Filters the default post display states used in the posts list table.





源码

return apply_filters( 'display_post_states', $post_states, $post );