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