· Snippets
Remove Woocommerce Menu for Shop Manager Role
Let's assume that you'd like to hide the WooCommerce menu for a certain user role, shop manager to be exact, and looking for a way to do it. Using the capability together…
WordPress security notes, code snippets, hosting advice and Gabfire theme news, written since 2008.
· Snippets
Let's assume that you'd like to hide the WooCommerce menu for a certain user role, shop manager to be exact, and looking for a way to do it. Using the capability together…
· Snippets
WordPress will allow you to modify or remove the <ul> element from wp_nav_menu but that's it. You cannot remove the <li> items of the navigation by using the default parameters. Using a…