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