public function warn_required_versions()
 {
     BWP_Version::warn_required_versions($this->plugin_title, $this->domain, $this->php_ver, $this->wp_ver);
 }
 protected function is_form_item_hidden($name)
 {
     if (isset($this->form['env']) && array_key_exists($name, $this->form['env']) && $this->form['env'][$name] == 'multisite' && !BWP_Framework_Util::is_multisite()) {
         // hide multisite field if not in multisite environment
         return true;
     }
     if (isset($this->form['php']) && array_key_exists($name, $this->form['php']) && !BWP_Version::get_current_php_version_id($this->form['php'][$name])) {
         // hide field if the current PHP version requirement is not satisfied
         return true;
     }
     if (isset($this->form['role']) && array_key_exists($name, $this->form['role']) && $this->form['role'][$name] == 'superadmin' && (!BWP_Framework_Util::is_site_admin() || !BWP_Framework_Util::is_on_main_blog())) {
         // hide site-admin-only settings if not a site admin or not on
         // main blog
         return true;
     }
     /* if (isset($this->form['callback']) */
     /* 	&& array_key_exists($name, $this->form['callback']) */
     /* 	&& is_callable($this->form['callback'][$name]) */
     /* 	&& !call_user_func($this->form['callback'][$name], $name) */
     /* ) { */
     /* 	// a condition not satisfied, hide the field */
     /* 	return true; */
     /* } */
     if (in_array($name, $this->site_options) && (!BWP_Framework_Util::is_site_admin() || !BWP_Framework_Util::is_on_main_blog())) {
         // hide site-admin-only settings if not a site admin or not on
         // main blog
         return true;
     }
     if (isset($this->form['blog']) && array_key_exists($name, $this->form['blog'])) {
         // this field should be on main blog only, so hide it if not
         if ($this->form['blog'][$name] == 'main' && !BWP_Framework_Util::is_on_main_blog()) {
             return true;
         } elseif ($this->form['blog'][$name] == 'sub' && BWP_Framework_Util::is_on_main_blog()) {
             // this field should be on sub blogs only, so hide it if on
             // main blog
             return true;
         }
     }
     return false;
 }