Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'techmarket_search_categories_filter_args', 'tm_show_only_root_categories_in_search', 20 );
- function tm_show_only_root_categories_in_search( $args ) {
- $args['hierarchical'] = 1;
- $args['hide_empty'] = 0;
- return $args;
- }
Add Comment
Please, Sign In to add comment