<?php

/**
 * Fired during plugin activation
 *
 * @link       https://wpgeenie.org
 * @since      1.0.0
 *
 * @package    Spending_Limits_For_Woocommerce
 * @subpackage Spending_Limits_For_Woocommerce/includes
 */
/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      1.0.0
 * @package    Spending_Limits_For_Woocommerce
 * @subpackage Spending_Limits_For_Woocommerce/includes
 * @author     wpgeenie.org <info@wpgeenie.org>
 */
class Spending_Limits_For_Woocommerce_Activator {
    /**
     * Short Description. (use period)
     *
     * Long Description.
     *
     * @since    1.0.0
     */
    public static function activate() {
        update_option( 'slfw_db_version', SPENDING_LIMITS_FOR_WOOCOMMERCE_DB_VERSION );
        add_rewrite_endpoint( 'spending-limits', EP_ROOT | EP_PAGES );
        flush_rewrite_rules();
    }

}
