Answers for "change select option to shop now woocommerce"

0

woocommerce select options text

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
	global $product;
	if ( $product->is_type( 'variable' ) ) {
		$text = $product->is_purchasable() ? __( 'Custom options text', 'woocommerce' ) : __( 'Read more', 'woocommerce' );
	}
	return $text;
}, 10 );
Posted by: Guest on May-25-2020

Code answers related to "change select option to shop now woocommerce"

Browse Popular Code Answers by Language