| 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.24 |
| 16 |
* Author: Nabil Lemsieh |
| 17 |
* Author URI: https://hurrytimer.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 |
|
| 29 |
if ( !defined( 'WPINC' ) ) { |
| 30 |
die; |
| 31 |
} |
| 32 |
|
| 33 |
define( 'HURRYT_VERSION', '2.2.24' ); |
| 34 |
define( 'HURRYT_DB_VERSION', '1.0.0' ); |
| 35 |
define( 'HURRYT_SLUG', 'hurrytimer' ); |
| 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' ); |
| 40 |
define( 'HURRYT_OPTION_VERSION_KEY', 'hurrytimer_version' ); |
| 41 |
|
| 42 |
|
| 43 |
require plugin_dir_path( __FILE__ ) . 'includes/Bootstrap.php'; |
| 44 |
|
| 45 |
function activate() |
| 46 |
{ |
| 47 |
require_once HURRYT_DIR . 'includes/Activator.php'; |
| 48 |
Activator::activate(); |
| 49 |
} |
| 50 |
|
| 51 |
function deactivate() |
| 52 |
{ |
| 53 |
require_once HURRYT_DIR . 'includes/Deactivator.php'; |
| 54 |
Deactivator::deactivate(); |
| 55 |
} |
| 56 |
|
| 57 |
register_activation_hook( __FILE__, 'Hurrytimer\activate' ); |
| 58 |
register_deactivation_hook( __FILE__, 'Hurrytimer\deactivate' ); |
| 59 |
|
| 60 |
do_action( 'before_hurrytimer_init' ); |
| 61 |
( new Bootstrap() )->run(); |
| 62 |
do_action( 'hurrytimer_init' ); |
| 63 |
|
| 64 |
|