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 +25 -52 1.0.02.6.2 View file →
@@ -1,75 +1,48 @@
1 1 <?php
2 +// removeIf(pro)
3 +
2 4 /**
3 5 * The plugin bootstrap file
4 6 *
5 - * @link http://nabillemsieh.com
7 + * @link http://hurrytimer.com
6 8 * @since 1.0.0
7 9 * @package Hurrytimer
8 10 *
9 11 * @wordpress-plugin
10 - * Plugin Name: HurryTimer - A Scarcity Countdown Timer for WP & WooCoomerce
11 - * Plugin URI: https://wordpress.org/plugins/hurrytimer
12 - * Description: A simple yet powerful scarcity countdown timer for WordPress & WooCommerce.
13 - * Version: 1.0.0
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.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 -namespace Hurrytimer;
22 25
26 +
27 +// endRemoveIf(pro)
28 +
23 29 // If this file is called directly, abort.
30 +
24 31 if (!defined('WPINC')) {
25 32 die;
26 33 }
27 34
28 -define(__NAMESPACE__ . '\VERSION', '1.0.0');
29 -define(__NAMESPACE__ . '\PLUGIN_NAME', 'hurrytimer');
30 -define(__NAMESPACE__ . '\PLUGIN_DIR', plugin_dir_path(__FILE__));
31 -define(__NAMESPACE__ . '\PLUGIN_URL', plugin_dir_url(__FILE__));
32 -/**
33 - * Countdown timer's slug
34 - * @deprecated 1.0.0
35 - */
36 -define(__NAMESPACE__ . '\PT', 'hurrytimer_countdown');
37 -define(__NAMESPACE__ . '\COUNTDOWN_PT', 'hurrytimer_countdown');
35 +define('HURRYT_VERSION', '2.6.2');
36 +define('HURRYT_DIR', plugin_dir_path(__FILE__));
37 +define('HURRYT_URL', plugin_dir_url(__FILE__));
38 +define('HURRYT_BASENAME', plugin_basename(__FILE__));
39 +define('HURRYT_POST_TYPE', 'hurrytimer_countdown');
38 40
39 -function activate_hurrytimer()
40 -{
41 - require_once plugin_dir_path(__FILE__) . 'includes/class-hurrytimer-activator.php';
42 - Hurrytimer_Activator::activate();
43 -}
41 +require_once __DIR__ . '/vendor/autoload.php';
44 42
45 -function deactivate_hurrytimer()
46 -{
47 - require_once plugin_dir_path(__FILE__) . 'includes/class-hurrytimer-deactivator.php';
48 - Hurrytimer_Deactivator::deactivate();
49 -}
43 +register_activation_hook(__FILE__, [Hurrytimer\Installer::get_instance(), 'activate']);
50 44
51 -register_activation_hook(__FILE__, __NAMESPACE__ . '\activate_hurrytimer');
52 -register_deactivation_hook(__FILE__, __NAMESPACE__ . '\deactivate_hurrytimer');
53 -
54 -/**
55 - * The core plugin class that is used to define internationalization,
56 - * admin-specific hooks, and public-facing site hooks.
57 - */
58 -require plugin_dir_path(__FILE__) . 'includes/class-hurrytimer.php';
59 -
60 -/**
61 - * Begins execution of the plugin.
62 - *
63 - * Since everything within the plugin is registered via hooks,
64 - * then kicking off the plugin from this point in the file does
65 - * not affect the page life cycle.
66 - *
67 - * @since 1.0.0
68 - */
69 -function run_hurrytimer()
70 -{
71 - $plugin = new Hurrytimer();
72 - $plugin->run();
73 -}
74 -
75 -run_hurrytimer();
45 +add_action('plugins_loaded', function () {
46 + (new \Hurrytimer\Bootstrap())->run();
47 + do_action('hurrytimer_init');
48 +});