<?php
/**
 * Fired during plugin activation
 *
 * @link       https://zqe.io
 * @since      1.0.0
 *
 * @package    Variation_Swatches_And_Gallery
 * @subpackage Variation_Swatches_And_Gallery/includes
 */

namespace Zqe;

/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      1.0.0
 * @package    Variation_Swatches_And_Gallery
 * @subpackage Variation_Swatches_And_Gallery/includes
 * @author     ZQE <dev@zqe.io>
 */
class Variation_Swatches_And_Gallery_Activator {

	/**
	 * Short Description. (use period)
	 *
	 * Long Description.
	 *
	 * @since    1.0.0
	 */
	public static function activate() {
		// Store activation time for review prompt timing.
		if ( ! get_option( 'vsg_activation_time' ) ) {
			update_option( 'vsg_activation_time', time() );
		}

		// Set flag to redirect to welcome page after activation.
		set_transient( 'vsg_activation_redirect', true, 30 );
	}

}
