[wp-trac] [WordPress Trac] #13001: Action Hook for change post status

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 11:03:58 UTC 2010


#13001: Action Hook for change post status
---------------------------------+------------------------------------------
 Reporter:  Angeloverona         |        Owner:         
     Type:  enhancement          |       Status:  closed 
 Priority:  high                 |    Milestone:         
Component:  General              |      Version:  3.0    
 Severity:  normal               |   Resolution:  invalid
 Keywords:  hook action pending  |  
---------------------------------+------------------------------------------

Comment(by nacin):

 {{{
 2616  function wp_transition_post_status($new_status, $old_status, $post)
 {
 2617      do_action('transition_post_status', $new_status, $old_status,
 $post);
 2618      do_action("{$old_status}_to_$new_status", $post);
 2619      do_action("{$new_status}_$post->post_type", $post->ID, $post);
 2620  }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13001#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list