How to change the “Proceed to PayPal” button text on the WooCommerce checkout screen

TIPS

Jun 27, 2018 | WooCommerce Tips | 0 comments

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

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields