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.
[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]
0 Comments