Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter andrea82

    (@andrea82)

    What command should I use with the remove_meta_box code?

    Thread Starter andrea82

    (@andrea82)

    SOLVED

    if (is_admin()) :
    function remove_post_meta_boxes() {
     if(!current_user_can('administrator')) {
      remove_meta_box('awd_fcbk_awd_mini_form_metabox', 'post', 'high');
     }
    }
    add_action( 'admin_menu', 'remove_post_meta_boxes' );
    endif;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove meta boxes in the backend for non admins’ is closed to new replies.