ID; $postmeta = get_post_meta($post->ID, '_crowdfundingcheckboxvalue', true); $checkstockstatus = get_post_meta($post->ID, '_stock_status', true); if ($postmeta == 'yes') { if ($checkstockstatus == 'instock') { ?> ID, '_crowdfundingcheckboxvalue', true); if ($postmeta == 'yes') { echo ''; } } } add_filter('woocommerce_product_single_add_to_cart_text', array('FPCrowdFundingContribution', 'cf_replace_add_cart')); add_filter('add_to_cart_text', array('FPCrowdFundingContribution', 'cf_replace_add_cart')); add_filter('woocommerce_product_add_to_cart_text', array('FPCrowdFundingContribution', 'cf_replace_add_cart')); add_action('wp_head', array('FPCrowdFundingContribution', 'cf_hide_qty_in_product')); ?>