Answers for "woocommerce change choose an option button text"

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 "woocommerce change choose an option button text"

Browse Popular Code Answers by Language