/* Change Buy Product Text in WooCommerce Single Product Page */
function wpflt_buy_product_button_text_single( $button_text, $product ) {
if ( 'external' === $product->get_type() ) {
return $product->button_text ? $product->button_text : 'Check Price';
}
return $button_text;
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wpflt_buy_product_button_text_single', 10, 2 );
This works only for External Products. The above code changes the “Buy Product” button text to any custom text for the WooCommerce Single Product Page. Replace the “Know Price” text with any custom text.
Also Read,
Change the “Buy Product” Button Text on WooCommerce Product Archive Page.
Change Sitewide “Buy Product” Button Text in WooCommerce for External Products.