Change WordPress user roles and capabilities Forums Bug Reports Disable metaboxes in pro not working Reply To: Disable metaboxes in pro not working

#2375
Vladimir
Keymaster

Hi,

The code of this method is here:


public function is_restriction_aplicable() {
        if ($this->lib->multisite && is_super_admin()) {
            return false;
        }
        
        if (!$this->lib->multisite && current_user_can('administrator')) {
            return false;
        }

        return true;
    }

It means: do not restrict superadmin for WP multisite and do not restrict user with ‘administrator’ role for single WP.