Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($process==1){
- $excluded_categories = array ('cat-slug-1', 'cat-slug-2');
- $post_categories = wp_get_post_categories( $post_ID , array('fields' => 'all'));
- foreach ($post_categories as $cat){
- if(in_array($cat->slug, $excluded_categories)) {
- $process = 0;
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement