PluginProbe
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce / 2.2.15
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce v2.2.15
2.15.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 All 62 releases
hurrytimer / hurrytimer.php

hurrytimer.php in HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce 2.2.15, at hurrytimer.php

65 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // removeIf(pro)
3
4 /**
5 * The plugin bootstrap file
6 *
7 * @link http://hurrytimer.com
8 * @since 1.0.0
9 * @package Hurrytimer
10 *
11 * @wordpress-plugin
12 * Plugin Name: HurryTimer
13 * Plugin URI: https://hurrytimer.com
14 * Description: A Scarcity and Urgency Countdown Timer for WordPress & WooCommerce with recurring and evergreen mode.
15 * Version: 2.2.15
16 * Author: Nabil Lemsieh
17 * Author URI: http://nabillemsieh.com
18 * License: GPLv3
19 * License URI: http://www.gnu.org/licenses/gpl.html
20 * Text Domain: hurrytimer
21 * Domain Path: /languages
22 */
23 // endRemoveIf(pro)
24
25 namespace Hurrytimer;
26
27 // If this file is called directly, abort.
28 use Hurrytimer\Utils\Helpers;
29
30 if (!defined('WPINC')) {
31 die;
32 }
33
34 define('HURRYT_VERSION', '2.2.15');
35 define('HURRYT_DB_VERSION', '1.0.0');
36 define('HURRYT_SLUG', 'hurrytimer');
37 define('HURRYT_DIR', plugin_dir_path(__FILE__));
38 define('HURRYT_URL', plugin_dir_url(__FILE__));
39 define('HURRYT_BASENAME', plugin_basename(__FILE__));
40 define('HURRYT_POST_TYPE', 'hurrytimer_countdown');
41 define('HURRYT_OPTION_VERSION_KEY', 'hurrytimer_version');
42
43
44 require plugin_dir_path(__FILE__) . 'includes/Bootstrap.php';
45
46 function activate()
47 {
48 require_once HURRYT_DIR . 'includes/Activator.php';
49 Activator::activate();
50 }
51
52 function deactivate()
53 {
54 require_once HURRYT_DIR . 'includes/Deactivator.php';
55 Deactivator::deactivate();
56 }
57
58 register_activation_hook(__FILE__, 'Hurrytimer\activate');
59 register_deactivation_hook(__FILE__, 'Hurrytimer\deactivate');
60
61 do_action('before_hurrytimer_init');
62 (new Bootstrap())->run();
63 do_action('hurrytimer_init');
64
65