Background of the issue:
I need to translate newly added WooCommerce 'My Account' menu items. I have added these menu items to my account page of WooCommerce using the following code: add_filter('woocommerce_account_menu_items', function($items) { $new_items = []; foreach ($items as $key => $label) { $new_items[$key] = $label; if ($key === 'dashboard') { $new_items['submit-press'] = __('Submit Press Release', 'your-text-domain'); $new_items['your-releases'] = __('Your Releases', 'your-text-domain'); } } return $new_items; }); add_action('init', function () { add_rewrite_endpoint('submit-press', EP_ROOT | EP_PAGES); add_rewrite_endpoint('your-releases', EP_ROOT | EP_PAGES); }); I used _() text domain. Link to a page where the issue can be seen: lien caché
Symptoms:
I cannot find the items from String translation.
Questions:
How can I make the newly added WooCommerce 'My Account' menu items appear in String translation?