[php] add_filter( 'gettext', 'custom_paypal_button_text', 20, 3 ); function custom_paypal_button_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Proceed to PayPal' : $translated_text = __( 'YOUR NEW BUTTON TEXT', 'woocommerce' ); break; } return $translated_text; } [/php]
How to change the “Proceed to PayPal” button text on the WooCommerce checkout screen
The default PayPal buttons says “Proceed to PayPal”. You may want to change this to something else like “Continue to Pay” or whatever you like.
Add the following PHP code to your child theme functions.php file.
Need help with this?
Hire me for a consultation and I'll walk you thru the process.
0 Comments