Answers for "change woocommerce select options 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 "change woocommerce select options text"

Browse Popular Code Answers by Language