# hurrytimer/2.0.0/includes/Activator.php

HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress &amp; WooCommerce, version 2.0.0. 42 lines.

- Page: https://pluginprobe.com/plugins/hurrytimer/2.0.0/code/includes/Activator.php
- Raw: https://pluginprobe.com/plugins/hurrytimer/2.0.0/raw/includes/Activator.php
- Modified: 2019-04-05T20:43:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hurrytimer/2.0.0/code/includes/Activator.php#L10-L20`.

```php
<?php
namespace Hurrytimer;

/**
 * Fired during plugin activation
 *
 * @link       http://nabillemsieh.com
 * @since      1.0.0
 *
 * @package    Hurrytimer
 * @subpackage Hurrytimer/includes
 */

/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      1.0.0
 * @package    Hurrytimer
 * @subpackage Hurrytimer/includes
 * @author     Nabil Lemsieh <contact@nabillemsieh.com>
 */
class Activator
{

    /**
     * Short Description. (use period)
     *
     * Long Description.
     *
     * @since    1.0.0
     */
    public static function activate()
    {
        Upgrade::getInstance()->createTables();
        add_option('hurrytimer_db_version', HURRYT_DB_VERSION);
        add_option('hurrytimer_version', HURRYT_VERSION);
    }

}

```
