Ejemplo n.º 1
0
/**
 * Returns the main instance of WP_SUAPI to prevent the need to use globals.
 *
 * @since  1.0.0
 * @return object WP_SUAPI
 */
function WP_SUAPI()
{
    $instance = WP_SUAPI::instance(__FILE__, '1.0.0');
    return $instance;
}
Ejemplo n.º 2
0
 /**
  * Main WP_SUAPI Instance
  *
  * Ensures only one instance of WP_SUAPI is loaded or can be loaded.
  *
  * @since 1.0.0
  * @static
  * @see WP_SUAPI()
  * @return Main WP_SUAPI instance
  */
 public static function instance($file = '', $version = '1.0.0')
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($file, $version);
     }
     return self::$_instance;
 }