Changes between Version 1 and Version 2 of Ticket #21267, comment 5
- Timestamp:
- 08/06/2012 02:31:19 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21267, comment 5
v1 v2 6 6 class MyClass2 { static function filter( $filter ) { error_log( 'called' ); return $filter; } } 7 7 8 $my_class_1 = new MyClass1; 8 $my_class_1a = new MyClass1; 9 $my_class_1b = new MyClass1; 9 10 10 11 add_filter( 'list_terms_exclusions', 'a_function' ); 11 add_filter( 'list_terms_exclusions', array( $my_class_1, 'filter' ) ); 12 add_filter( 'list_terms_exclusions', array( $my_class_1a, 'filter' ) ); 13 add_filter( 'list_terms_exclusions', array( $my_class_1b, 'filter' ) ); 12 14 add_filter( 'list_terms_exclusions', array( 'MyClass2', 'filter' ) ); 13 15 add_filter( 'list_terms_exclusions', 'MyClass2::filter' ); … … 16 18 print_r( $GLOBALS['wp_filter']['list_terms_exclusions'] ); 17 19 20 echo wp_filter_callbacks_hash( 'list_terms_exclusions' ); 21 18 22 get_terms( 'link_category' ); 19 23 exit();