mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
7 lines
304 B
Text
7 lines
304 B
Text
function change_proceed_to_checkout_text( $translated_text, $text, $domain ) {
|
|
if ( 'woocommerce' === $domain && 'Proceed to checkout' === $text ) {
|
|
$translated_text = 'Your Custom Text';
|
|
}
|
|
return $translated_text;
|
|
}
|
|
add_filter( 'gettext', 'change_proceed_to_checkout_text', 20, 3 );
|