if (get_post_type() == 'custom_post_type_1' || get_post_type() == 'custom_post_type_2' || get_post_type() == 'custom_post_type_3') {
or
$cpt = array('custom_post_type_1', 'custom_post_type_2', 'custom_post_type_3');
if (in_array(get_post_type(), $cpt)) {
-
This reply was modified 5 years, 7 months ago by flashfreak8. Reason: cleaner code