Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exclude_category($query) {
- if(pmpro_hasMembershipLevel()) {
- if(is_home()){
- $query->set('cat', '-90,-125,-135');
- }
- return $query;
- }
- }
- add_filter('pre_get_posts', 'exclude_category');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement