Changes between Initial Version and Version 2 of Ticket #16245
- Timestamp:
- 01/15/2011 08:51:30 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16245
-
Property
Severity
changed from
normaltomajor
-
Property
Severity
changed from
-
Ticket #16245 – Description
initial v2 3 3 {{{ 4 4 function run_once() { 5 remove_filter( 'foobar', 'run_once');6 return 'test';5 remove_filter( current_filter(), __FUNCTION__ ); 6 return 'test'; 7 7 } 8 8 add_filter( 'foobar', 'run_once' ); 9 9 10 add_filter( 'foobar', function($test) {return 'test again';}, 11 ); 10 function another_filter() { 11 return 'test again'; 12 } 13 add_filter( 'foobar', 'another_filter', 11 ); 11 14 12 echo apply_filters( 'foobar', '' , 'huh');15 echo apply_filters( 'foobar', '' ); 13 16 }}} 14 17