Passer au contenu Passer à la barre latérale

Ce sujet contient 0 réponses, a 0 voix.

Dernière mise à jour par josephN-9 Il y a 3 semaines et 6 jours.

Assisté par: Christopher Amirian.

Auteur Messages
août 17, 2025 à 8:09 am #17325243

josephN-9

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?