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



transition_post_status › WordPress动作钩子

Since2.3.0
已弃用n/a
› do_action( 'transition_post_status', $new_status, $old_status, $post )
参数: (3)
  • () new_status New post status.
    Required: Yes
  • () old_status Old post status.
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

Fires when a post is transitioned from one status to another.





源码

do_action( 'transition_post_status', $new_status, $old_status, $post );