Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( $hierarchical )
- $depth = $r['depth'];
- else
- $depth = -1; // Flat.
- foreach ( $categories as $key => $category ) {
- if ($category->term_id == 4 || $category->term_id == 10 || $category->term_id == 1 ) unset ($categories[ $key ]) ;
- }
- $output .= walk_category_tree( $categories, $depth, $r );
- }
- if ( $title_li && 'list' == $style )
- $output .= '</ul></li>';
- $output = apply_filters( 'wp_list_categories', $output, $args );
- if ( $echo )
- echo $output;
- else
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment