<?php

/**
 * Fired during plugin activation
 *
 * @link       tarokkina_free/fer
 * @since      1.0.0
 *
 * @package    Tarokkina_free
 * @subpackage Tarokkina_free/includes
 */

/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      1.0.0
 * @package    Tarokkina_free
 * @subpackage Tarokkina_free/includes
 * @author     tarokkina_free <tarokkina_free@gmailcom>
 */
class Tarokkina_free_Activator {
	/**
	 * Short Description. (use period)
	 *
	 * Long Description.
	 *
	 * @since    1.0.0
	 */
	public static function TkNa_activate() {

		flush_rewrite_rules();


		//activar fecha de instalación
		$settings = get_option('TkNa_settings');
		if(empty($settings)){
			$settings['installed_on'] = date("Y/m/d");
			update_option('TkNa_settings', $settings, "no");
		}

	}

}
