Created
December 16, 2020 09:17
-
-
Save metelidrissi/28c664ea3b40a92ff163dad25960a8d4 to your computer and use it in GitHub Desktop.
Rename the module name in WordPress
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
function my_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'WooCommerce' : | |
$translated_text = __( 'Stall', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_text_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment