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



post_states_html › WordPress过滤钩子

Since6.9.0
已弃用n/a
› apply_filters( 'post_states_html', $post_states_html, $post_states, $post )
参数: (3)
  • () post_states_html All relevant post states combined into an HTML string for display. E.g. `&mdash; <span class='post-state'>Draft, </span><span class='post-state'>Sticky</span>`.
    Required: Yes
  • () 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 HTML string of post states.





源码

$post_states_html = apply_filters( 'post_states_html', $post_states_html, $post_states, $post );