Description
Fires when a post is transitioned from one status to another.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post.php | 5521 |
Parameters
Type | Name | Description |
---|---|---|
string | $new_status | New post status. |
string | $old_status | Old post status. |
WP_Post | $post | Post object. |
PHP Doc
/**
* 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.
*/