Core Function
View Source on Trac ↗ _transition_post_status()
_transition_post_status( mixed $new_status, mixed $old_status, mixed $post ) Hook for managing future post transitions to published.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $new_status string | New post status. Required |
| $old_status string | Previous post status. Required |
| $post WP_Post | Post object. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.3.0
Source File
wp-includes/post.php
Advertisement