Translation | How to replace text
add_filter( 'gettext', 'change_label_names', 20, 3 ); function change_menu_label( $translated, $text, $domain ) { if($domain == "woocommerce") { $translated = str_replace("Login", "Profile", $translated ); } return $translated; }