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

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.

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;
}

0 Comments

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.