Answers for "wc how to change select options 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 "wc how to change select options button text"

Browse Popular Code Answers by Language