skip to Main Content

Add shortcode to WooCommerce product description

I am trying to auto-add some shortcode at the end of every woo product description. (not after short description). The code with which I am trying is: add_filter('product_descr','ce_add_text_short_descr'); function ce_add_text_short_descr($description){ $text="[my-shortcode-goes-here]"; return $description.$text; } That one is not working for…

VIEW QUESTION

Making an exception for one coupon – Woocommerce

I am ussing this code to disable Paypal when any user use a coupon: add_filter('woocommerce_available_payment_gateways', 'applied_coupons_hide_payment_gateways', 20, 1 ); function applied_coupons_hide_payment_gateways( $available_gateways){ // Not in backend (admin) if( is_admin() ) return $available_gateways; // If at least a coupon is applied…

VIEW QUESTION
Back To Top
Search