Have you tried using has_term()
?
if( get_post_type($post) === $post_type && has_term( 'In progress', 'call_type', $post ) )
wp_mail($emails, "New Item listed on Fit It List. Ref number $title", $message);
Have you tried using has_term()
?
if( get_post_type($post) === $post_type && has_term( 'In progress', 'call_type', $post ) )
wp_mail($emails, "New Item listed on Fit It List. Ref number $title", $message);