wp_transition_post_status [ WordPress Function ]
| Parameters: |
|
| Uses: | |
| Links: | |
| Defined at: |
|
Transition the post status of a post.
Calls hooks to transition post status.
The first is 'transition_post_status' with new status, old status, and post data.
The next action called is 'OLDSTATUS_to_NEWSTATUS' the 'NEWSTATUS' is the $new_status parameter and the 'OLDSTATUS' is $old_status parameter; it has the post data.
The final action is named 'NEWSTATUS_POSTTYPE', 'NEWSTATUS' is from the $new_status parameter and POSTTYPE is post_type post data.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Clarifications on wp_transition_post_status()
Hi there, I am trying to change the post status and I found this function that has said from the PHP Code: /** * Transition the po.
www.wptavern.com - Post Status Transitions « WordPress Codex
The action is accompanied by the post ID and post object. See the function wp_transition_post_status() for how these actions are formed. Use add_action() to ...
codex.wordpress.org - hooks - Calling a Function After New Post Creation for a WordPress ...
Sep 6, 2010 ... <?php wp_transition_post_status($data['post_status'], ... <?php function wp_transition_post_status($new_status, $old_status, $post) ...
wordpress.stackexchange.com - wp_transition_post_status() WordPress function reference ...
wp_transition_post_status(). Transition the post status of a post. Calls hooks to transition post status. The first is 'transition_post_status' with new status, old ...
queryposts.com