Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if(!get_post_type()=='products') { //use this if statement to bypass certain post types, like products for WooCommerce
- add_filter('pre_get_posts', 'query_post_type');
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement