Change WooCommerce "Checkout" Text
This is a Developer Level doc.
If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.
If you want to replace the "Checkout" text with your own, use the following PHP snippet:
// Alter WooCommerce Checkout Text
add_filter( 'gettext', function( $translated_text ) {
if ( 'Checkout' === $translated_text ) {
$translated_text = 'Your new text here';
}
return $translated_text;
} );
Alter Your new text here per your need.
All PHP snippets should be added via a child theme's functions.php file.