Ejemplo n.º 1
0
 function belongs_in_admin($admin_scope = null)
 {
     if ($admin_scope === null) {
         $admin_scope = suwp::get_admin_scope();
     }
     switch ($admin_scope) {
         case 'blog':
             return true;
         case 'network':
             if (!function_exists('is_plugin_active_for_network')) {
                 require_once ABSPATH . '/wp-admin/includes/plugin.php';
             }
             return is_plugin_active_for_network($this->plugin->plugin_basename);
             break;
         default:
             return false;
             break;
     }
 }
 /**
  * @since 7.2.5
  */
 function belongs_in_admin($admin_scope = null)
 {
     if ($admin_scope === null) {
         $admin_scope = suwp::get_admin_scope();
     }
     switch ($admin_scope) {
         case 'blog':
             return true;
             break;
         case 'network':
         case 'user':
         default:
             return false;
             break;
     }
 }