Home › Forums › Add-ons › Options Page › How to hide "Options Page" menu item for specific users › Reply To: How to hide "Options Page" menu item for specific users
I ran into the same problem and while debug stepping through how the options page menu item is registered and named I discovered it’s not admin.php?etc. but rather just ‘acf-options’. This works for me:
add_action('admin_init', 'remove_acf_options_page', 99);
function remove_acf_options_page() {
remove_menu_page('acf-options');
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.