Hi!
I wanna adjust the menu item visibility for logged in users and i was planning on using the plugin Nav Menu roles for it. However the hooks you use for your nav menu item settings conflict with this plugin. They have a solution though and i’ll paste it lower down. Do you think you can fix this? π
Best regards,
Anna
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.