[wp-trac] [WordPress Trac] #36180: Add new param to {$new_status}_{$post->post_type} action
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Mar 11 22:28:26 UTC 2016
    
    
  
#36180: Add new param to {$new_status}_{$post->post_type} action
-------------------------------+------------------------------
 Reporter:  sebastian.pisula   |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+------------------------------
Comment (by swissspidy):
 Note that the DocBlock of that action recommends using the
 `transition_post_status` hook when needing to check the old and the new
 status. `{$new_status}_{$post->post_type}` can be called multiple times
 without the status having really changed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36180#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list