/** * Function wrapper to get instance of plugin * * @return Plugin_Name_Class */ function plugin_name() { return Plugin_Name_Class::get_instance(); }
/** * Get instance of main class * * @since 1.0.0 * @return Plugin_Name */ public static function get_instance() { if (empty(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }