Changes between Version 1 and Version 2 of Ticket #22256
- Timestamp:
- 10/22/2012 07:11:54 PM (13 years ago)
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. 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. You need to know all of them in order to use `remove_action()` successfully. 4 2 5 3 Acquiring the callback is especially problematic when it's: … … 21 19 } 22 20 23 add_filter( 'p arse_query.p2p', function() {21 add_filter( 'posts_clauses.p2p', function( $clauses ) { 24 22 // do stuff 25 23 }