Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change the Checkout Button Text
add_filter( 'gettext_woocommerce', 'ouwoo_checkout_button_text', 10, 3);
function ouwoo_checkout_button_text( $translated_text, $text, $domain ) {
switch( $translated_text ) {
case 'Checkout' :
$translated_text = "ENTER YOUR TEXT HERE";
return $translated_text;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment