PluginProbe
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce / 2.6.2
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce v2.6.2
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
← All changes | hurrytimer.php +17 -23 2.0.22.6.2 View file →
@@ -1,5 +1,7 @@
1 1 <?php
2 +// removeIf(pro)
3 +
2 4 /**
3 5 * The plugin bootstrap file
4 6 *
5 7 * @link http://hurrytimer.com
@@ -8,47 +10,39 @@
8 10 *
9 11 * @wordpress-plugin
10 12 * Plugin Name: HurryTimer
11 13 * Plugin URI: https://hurrytimer.com
12 - * Description: A Scarcity Countdown Timer for WordPress & WooCommerce.
13 - * Version: 2.0.2
14 + * Description: A Scarcity and Urgency Countdown Timer for WordPress & WooCommerce with recurring and evergreen mode.
15 + * Version: 2.6.2
14 16 * Author: Nabil Lemsieh
15 - * Author URI: http://nabillemsieh.com
17 + * Author URI: https://hurrytimer.com
16 18 * License: GPLv3
17 19 * License URI: http://www.gnu.org/licenses/gpl.html
18 20 * Text Domain: hurrytimer
19 21 * Domain Path: /languages
22 + * WC requires at least: 3.0.0
23 + * WC tested up to: 5.5
20 24 */
21 25
22 -namespace Hurrytimer;
23 26
27 +// endRemoveIf(pro)
28 +
24 29 // If this file is called directly, abort.
30 +
25 31 if (!defined('WPINC')) {
26 32 die;
27 33 }
28 34
29 -define('HURRYT_VERSION', '2.0.2');
30 -define('HURRYT_DB_VERSION', '1.0.0');
31 -define('HURRYT_SLUG', 'hurrytimer');
35 +define('HURRYT_VERSION', '2.6.2');
32 36 define('HURRYT_DIR', plugin_dir_path(__FILE__));
33 37 define('HURRYT_URL', plugin_dir_url(__FILE__));
34 38 define('HURRYT_BASENAME', plugin_basename(__FILE__));
35 39 define('HURRYT_POST_TYPE', 'hurrytimer_countdown');
36 40
37 -function activate()
38 -{
39 - require_once HURRYT_DIR . 'includes/Activator.php';
40 - Activator::activate();
41 -}
41 +require_once __DIR__ . '/vendor/autoload.php';
42 42
43 -function deactivate()
44 -{
45 - require_once HURRYT_DIR . 'includes/Deactivator.php';
46 - Deactivator::deactivate();
47 -}
43 +register_activation_hook(__FILE__, [Hurrytimer\Installer::get_instance(), 'activate']);
48 44
49 -register_activation_hook(__FILE__, 'Hurrytimer\activate');
50 -register_deactivation_hook(__FILE__, 'Hurrytimer\deactivate');
51 -
52 -require plugin_dir_path(__FILE__) . 'includes/Bootstrap.php';
53 -
54 -(new Bootstrap())->run();
45 +add_action('plugins_loaded', function () {
46 + (new \Hurrytimer\Bootstrap())->run();
47 + do_action('hurrytimer_init');
48 +});