WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21580, comment 11


Ignore:
Timestamp:
08/18/12 17:20:44 (20 months ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21580, comment 11

    initial v1  
    88Yes, you need to tell add_filter how many parameters you want back: 
    99 
     10{{{ 
    1011add_action('draft_to_publish', 'transition_hook', 10, 2); 
    1112add_action('future_to_publish', 'transition_hook', 10, 2); 
     13}}}