post_type)) $postType = $post->post_type; } if (in_array($postType, array("product", "product_variation", "shop_order"))) { return $postType; } else if (in_array($page, array("wpcf7", "flamingo", "uslp-label-printing-settings"))) { return $page; } return ""; } }