Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_hierarchy($show = true, $category = null) {
- if ($category -> id == X) {
- //do not show this category
- $show = false;
- }
- return $show;
- }
- add_filter('checkout_category_hierarchy', 'my_hierarchy', 10, 2);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement