Core Function
View Source on Trac ↗ wp_transition_post_status()
wp_transition_post_status( mixed $new_status, mixed $old_status, mixed $post ) Fires actions related to the transitioning of a post's status.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $new_status string | Transition to this post status. Required |
| $old_status string | Previous post status. Required |
| $post WP_Post | Post data. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.3.0
Source File
wp-includes/post.php
Advertisement