Hide Admin Menu
-
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.