Forums
Forums / Plugin: Advanced Custom Fields (ACF®) / Hide Admin Menu
(@gus0074)
7 years, 9 months ago
Hello,
I’m trying to hide the menu for certain users, tried this two codes but don’t work:
add_filter('acf/settings/show_admin', '__return_false');
taken from here: https://www.advancedcustomfields.com/resources/how-to-hide-acf-menu-from-clients/
And this one:
function my_acf_init() { acf_update_setting('show_admin', false); } add_action('acf/init', 'my_acf_init');
taken from here: https://www.advancedcustomfields.com/resources/acf-settings/
Many thanks Gus
The topic ‘Hide Admin Menu’ is closed to new replies.