How do I approach removing menu items on the fly based on settings in my plugin?
Well an easy solution is CSS <!– HIDES MENU ITEM IF THE USER IS NOT LOGGED IN –> <?php if (is_user_logged_in()){ echo “”;} else { echo “<style type=”text/css”> .menu-item-58 {display:none;} </style>”; }; ?> But if you are trying to code it down see the source of this plugin http://wordpress.org/extend/plugins/if-menu/ — it will help you alot. … Read more