Hello.
I am in the process of creating a set-up in which a client can create password protected pages to share with their customers.
One aspect currently giving me trouble is how to remove these pages from wp_nav_menu, considering they are children of pages which are in the menu. I can get rid of password protected pages with wp_page_menu but this is not an option.
Equally, it would be preferable if this was just set up to happen naturally, every time a page is added in future and didn't require extra plugins or checkboxes to untick to ignore posts as it's for someone else to use who may be less knowledgeable. Having to go back to the code to add extra ids to exclude is definitely out of the question.
Is there any good way of removing password protected posts from wp_nav_menu?
If more information is required let me know.