WooCommerce – Change “Proceed to PayPal” Text on Checkout button

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 = __( 'NEW BUTTON TEXT', $domain );
			break;
	}
	return $translated_text;
}

That’s all !!

Views (505)

Share on Facebook0Share on Google+0Share on LinkedIn0Tweet about this on TwitterEmail this to someonePrint this page
[Total: 1    Average: 2/5]

One thought on “WooCommerce – Change “Proceed to PayPal” Text on Checkout button

Leave a Reply

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

fifteen − 4 =