-
-
Save helgatheviking/d00f9c033a4b0aab0f69cf50d7dcd89c to your computer and use it in GitHub Desktop.
Thank you! This solved my problems with our complex menu! :)
Thank you! this is great for using with the LMS theme, this has been an issue for a while conflicting with this theme!
Thank you so much for this! :)
...and for anyone who's not sure how to use this plugin (like me!) ...if you download to your computer using the top-right 'Download Zip' button on this page, then change the name of the zip file to something like 'Nav Menu Rules Toggle' ...and just upload it to your plugins page like you usually do. :)
I tried adding the code as a plugin. I did not fix the problem.
@RevealMarketing looking at the snippet and I'm not sure where $version is even defined. I'll make a little tweak that might help.
Nav menu roles hasn't used a custom walker in 5 years. at this point, any theme that still is overriding the walker via wp_edit_nav_menu_walker and not including the relevant core hook wp_nav_menu_item_custom_fields is doing it wrong and needs to update.
I will say that the full site editor experience is not supported as the UI for that is too restrictive, so this toggle only has any input on the admin menus page.
Thank you for this!