src/WordPress/Plugin.php
static function getInstance($name = null)
  {
    if (empty($name)) {
      $name = get_called_class();
    }
    if (!empty(static::$plugins[$name])) {
      return static::$plugins[$name];
    }
    return false;
  }
static function getInstance($name = null)
  {
    if (empty($name)) {
      $name = get_called_class();
    }
    if (!empty(static::$plugins[$name])) {
      return static::$plugins[$name];
    }
    return false;
  }
static function getInstance ( $ name = null ) { if ( empty ( $ name ) ) { $ name = get_called_class ( ) ; } if ( ! empty ( static :: $ plugins [ $ name ] ) ) { return static :: $ plugins [ $ name ] ; } return false ; }
Get the existing instance of this Plugin.
@param string Optionally, the name or classname of the Plugin to retrieve
@return Plugin instance if bootstrapped, otherwise false
Get the existing instance of this Plugin .