Hi,
I’m using Atelier to create a store that has both a public-facing shop and a log-in-required wholesale shop for members, and I’m trying to have two different menus for each one. I would use the built in “Visible only when logged in” options, but the distinction between the public and private shops is down to different user roles – because it’s a subscription based shop, most customers will be logging in.
I plan to use the plugin Nav Menu Roles, but its options don’t show on the menu editor. the author has supplied a fix on the plugin page that you can find below.
“Workaround #1
Shazdeh, the author of Menu Item Visibility Control plugin had the genius idea to not wait for a core hook and simply add the hook ourselves. If all plugin and theme authors use the same hook, we can make our plugins play together.
Therefore, as of version 1.6 I am modifying my admin walker to only adding the following line (right after the description input):
<?php
// This is the added section
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
// end added section
?>
I am then adding my fields to this hook. Ask your conflicting plugin/theme’s author to do the same and our plugins should become compatible.”
Thanks