PluginProbe
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce / 1.1.2
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce v1.1.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
hurrytimer / hurrytimer.php

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

71 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * @link http://nabillemsieh.com
6 * @since 1.0.0
7 * @package Hurrytimer
8 *
9 * @wordpress-plugin
10 * Plugin Name: HurryTimer - A Scarcity Countdown Timer for WordPress & WooCoomerce
11 * Plugin URI: https://wordpress.org/plugins/hurrytimer
12 * Description: A simple yet powerful scarcity countdown timer for WordPress & WooCommerce.
13 * Version: 1.1.2
14 * Author: Nabil Lemsieh
15 * Author URI: http://nabillemsieh.com
16 * License: GPLv3
17 * License URI: http://www.gnu.org/licenses/gpl.html
18 * Text Domain: hurrytimer
19 * Domain Path: /languages
20 */
21 namespace Hurrytimer;
22
23 // If this file is called directly, abort.
24 if (!defined('WPINC')) {
25 die;
26 }
27
28 define('HURRYTIMER_PLUGIN_VERSION', '1.1.2');
29 define('HURRYTIMER_PLUGIN_NAME', 'hurrytimer');
30 define('HURRYTIMER_PLUGIN_DIR', plugin_dir_path(__FILE__));
31 define('HURRYTIMER_PLUGIN_URL', plugin_dir_url(__FILE__));
32 define('HURRYTIMER_COUNTDOWN_PT', 'hurrytimer_countdown');
33
34 function activate_hurrytimer()
35 {
36 require_once plugin_dir_path(__FILE__) . 'includes/class-hurrytimer-activator.php';
37 Hurrytimer_Activator::activate();
38 }
39
40 function deactivate_hurrytimer()
41 {
42 require_once plugin_dir_path(__FILE__) . 'includes/class-hurrytimer-deactivator.php';
43 Hurrytimer_Deactivator::deactivate();
44 }
45
46 register_activation_hook(__FILE__, 'Hurrytimer\activate_hurrytimer');
47 register_deactivation_hook(__FILE__, 'Hurrytimer\deactivate_hurrytimer');
48
49 /**
50 * The core plugin class that is used to define internationalization,
51 * admin-specific hooks, and public-facing site hooks.
52 */
53 require plugin_dir_path(__FILE__) . 'includes/class-hurrytimer.php';
54
55 /**
56 * Begins execution of the plugin.
57 *
58 * Since everything within the plugin is registered via hooks,
59 * then kicking off the plugin from this point in the file does
60 * not affect the page life cycle.
61 *
62 * @since 1.0.0
63 */
64 function run_hurrytimer()
65 {
66 $plugin = new Hurrytimer();
67 $plugin->run();
68 }
69
70 run_hurrytimer();
71