Hello
I would like to display the name of the person logged into woocommerce as a menu item. What should I do?
Thank you for your help
Hey Xorex_92,
Please have a look at the following thread:
https://kriesi.at/support/topic/woo-commerce-display-the-user-name/
https://stackoverflow.com/questions/52955174/how-do-i-show-a-customer-name-when-they-login-to-woocommerce#:~:text=You%20can%20just%20use%20the,only%20when%20it’s%20logged%20in.
If you need further assistance please let us know.
Best regards,
Victoria
hello
Indeed I can have the username on the menu but I would like it to work as a menu item and that clicking on it a menu unfolds.
Thank you for your help
Hi,
Thank you for the update.
We should be able to use the wp_nav_menu_items filter to insert additional items in the menu.
// https://developer.wordpress.org/reference/hooks/wp_nav_menu_items/
Usage examples can be found in the following threads.
// https://kriesi.at/support/topic/add-phone-icon-next-burger-menu-icon-on-mobile/#post-1241565
// https://kriesi.at/support/topic/add-search-icon-to-footer-navigation/#post-1235547
Best regards,
Ismael