WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about transition_post_status

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php do_action 5347 /**
* Fires when a post is transitioned from one status to another.
*
* @since 2.3.0
*
* @param string $new_status New post status.
* @param string $old_status Old post status.
* @param WP_Post $post Post object.
*/

Hook Parameters

Parameter Type Name Description
string $new_status New post status.
string $old_status Old post status.
WP_Post $post Post object.