WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #22256


Ignore:
Timestamp:
10/22/12 19:11:54 (2 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22256 – Description

    v1 v2  
    1 Currently, callbacks passed to add_action() and add_filter() are already sort of namespaced by the hook name, by the callback itself, by priority and by argument count. 
    2  
    3 You need to know all of them in order to use `remove_action()` successfully. 
     1Currently, callbacks passed to add_action() and add_filter() are already sort of namespaced by the hook name, by the callback itself, by priority and by argument count. You need to know all of them in order to use `remove_action()` successfully. 
    42 
    53Acquiring the callback is especially problematic when it's: 
     
    2119} 
    2220 
    23 add_filter( 'parse_query.p2p', function() { 
     21add_filter( 'posts_clauses.p2p', function( $clauses ) { 
    2422  // do stuff 
    2523}