Skip to content

Instantly share code, notes, and snippets.

@roscabgdn
Created March 8, 2016 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roscabgdn/768535bad068c21ce8f6 to your computer and use it in GitHub Desktop.
Save roscabgdn/768535bad068c21ce8f6 to your computer and use it in GitHub Desktop.
Change the "Proceed to PayPal" button text in the WooCommerce checkout screen
/*
* Change the "Proceed to PayPal" button text in the WooCommerce checkout screen
*/
add_filter( 'gettext', 'rb_custom_paypal_button', 20, 3 );
function rb_custom_paypal_button( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Proceed to PayPal' :
$translated_text = __( 'Your new Paypal button text here', 'woocommerce' );
break;
}
return $translated_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment