Hide page in code

I have created a page and set its permissions as Members Only. The page shows up in the menu, and if clicked by someone that isn’t logged in, it automatically shows the Login prompt. Instead, I would prefer that the page not show up in the menu unless the user is logged in (ie. user not logged → page is not shown in menu, once logged in → page shows in menu).

I could accomplish this in code in either of two ways: give us programmatic access to hide (or disable) menu options, or give us the capability to programmatically hide and unhide a page.


Me also