Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter('register_taxonomy_args', function($args, $taxonomy) {
- if ($taxonomy === "page_cat") {
- $args['public'] = false;
- }
- return $args;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement