Function Reference/ transition post status
Description
Hook for managing future post transitions to published.
Usage
<?php _transition_post_status( $new_status, $old_status, $post ) ?>
Parameters
- $new_status
- (string) (required) New post status
- Default: None
- $old_status
- (string) (required) Previous post status
- Default: None
- $post
- (object) (required) Object type containing the post information
- Default: None
Return Values
- (void)
- This function does not return a value.
Examples
Notes
- This is a private function. It should not be called directly. It is listed in the Codex for completeness.
- Uses: do_action() Calls 'private_to_published' on post ID if this is a 'private_to_published' call.
- Uses: wp_clear_scheduled_hook() with 'publish_future_post' and post ID.
- Uses global: (object) $wpdb
Change Log
Since: 2.3.0
Source File
_transition_post_status() is located in wp-includes/post.php.
Related