remove_filter not working – what am I doing wrong
-
I am applying a filter to wp_dropdown_categories to restrict the values returned
in a function i have, the filter works properly and i get teh expected results
add_filter('terms_clauses', 'set_term_filter_provinces', '', 1); wp_dropdown_categories( $args ); remove_filter('terms_clauses','set_term_filter_provinces', 1 );but a subsequent call shows the altered filter created above
add_filter('terms_clauses', 'set_term_filter_clubs', '', 1); wp_dropdown_categories( $args ); remove_filter( 'terms_clauses', 'set_term_filter_clubs', 1 );how do i reset the filter to the default values in between custom calls?
TIA
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘remove_filter not working – what am I doing wrong’ is closed to new replies.