Home Forums Backend Issues (wp-admin) remove_meta_box + acf for not admin user


remove_meta_box + acf for not admin user

  • Hello,

    Thank you so much for your plugin advanced custom fields !
    However, I have a question: I want to limited the access of editor (and author) of my website. So I use this code:

    function my_remove_acf_meta_boxes() {
    	if (!is_super_admin()) {
    		remove_meta_box('acf_postbox', 'post', 'normal');
    add_action( 'admin_menu', 'my_remove_acf_meta_boxes', 0);

    But it’s doesn’t work. Can you help me?

  • Not sure what you’re trying to remove here, the acf link in the admin menu or the field groups from the pages?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘remove_meta_box + acf for not admin user’ is closed to new replies.