jeudi 5 février 2015

Restrict access to options-*.php pages


I have a custom role named manager with manage_options and read capabilities , i want to restrict him not to access Settings menu, you may say remove manage_options capability but that's not the case as i need that cap (am using Settings API which posts to options.php).


I can hide those pages by using remove_menu_page() but still we can access by directly typing url.





Aucun commentaire:

Enregistrer un commentaire