Forked from MindyPostoff/gist:a10148daa110119b262f
Last active
August 28, 2015 08:45
-
-
Save PrafullaKumarSahu/2496b2e5b57f99a22b06 to your computer and use it in GitHub Desktop.
Change "Proceed to PayPal" Text on Checkout Button in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Change the "Proceed to PayPal" button text in the WooCommerce checkout screen | |
add_filter( 'woocommerce_order_button_text', create_function( '', 'return "Make Payment";' ) ); | |
OR, | |
* Add this to your theme's 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 = __( 'Make Payment', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment