/** * Main Easy_Post_Embed_Code Instance * * Ensures only one instance of Easy_Post_Embed_Code is loaded or can be loaded. * * @since 1.0.0 * @static * @see Easy_Post_Embed_Code() * @return Main Easy_Post_Embed_Code 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 Easy_Post_Embed_Code to prevent the need to use globals. * * @since 1.0.0 * @return object Easy_Post_Embed_Code */ function Easy_Post_Embed_Code() { $instance = Easy_Post_Embed_Code::instance(__FILE__, '1.0.0'); return $instance; }