/** * Returns single instance of the class * * @return \YWRR_Review_Reminder * @since 1.1.5 */ public static function get_instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * Unique access to instance of YWRR_Review_Reminder * * @since 1.1.5 * @return YWRR_Review_Reminder|YWRR_Review_Reminder * @author Alberto Ruggiero */ function YITH_WRR() { // Load required classes and functions require_once YWRR_DIR . 'class.yith-woocommerce-review-reminder.php'; if (defined('YWRR_PREMIUM') && file_exists(YWRR_DIR . 'class.yith-woocommerce-review-reminder-premium.php')) { require_once YWRR_DIR . 'class.yith-woocommerce-review-reminder-premium.php'; return YWRR_Review_Reminder_Premium::get_instance(); } return YWRR_Review_Reminder::get_instance(); }