A WordPress-centric search engine for devs and theme authors



transition_post_status ›

Since2.3.0
Deprecatedn/a
do_action( 'transition_post_status', $new_status, $old_status, $post )
Parameters: (3)
  • (string) $new_status New post status.
    Required: Yes
  • (string) $old_status Old post status.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

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





Source

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