Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17019, comment 21


Ignore:
Timestamp:
04/08/2011 05:27:26 AM (13 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17019, comment 21

    initial v1  
    11To put it another way: you're moving the context check from the callback to the caller - apply_filters().
    22
    3 An if in apply_filters() is called for ''every'' filter, whereas an if in the callback is called only for that particular filter.
     3An {{{if}}} in apply_filters() is called for ''every'' filter, whereas an {{{if}}} in the callback is called only for that particular filter.