Here's the process of changing labels (I changed WooCommerce to "Stall" in my example). You can try this using the gettext filterfollowing.
Use this in functions.php file
function rename_header_to_logo( $translated, $original, $domain ) {
$strings = array(
'WooCommerce' => 'Stall',
'Custom Header' => 'Custom Stall'
);
if ( isset( $strings[$original] ) && is_admin() ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'rename_header_to_logo', 10, 3 );
You can also apply below code
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 );

source
share