| 1 |
<?php |
| 2 |
|
| 3 |
namespace ContentEgg; |
| 4 |
|
| 5 |
/* |
| 6 |
Plugin Name: Content Egg |
| 7 |
Plugin URI: https://www.keywordrush.com/contentegg |
| 8 |
Description: Multi-network affiliate plugin — imports, price comparison, automation, and structured blocks for affiliate content. |
| 9 |
Version: 11.6.0 |
| 10 |
Requires at least: 6.9 |
| 11 |
Requires PHP: 8.0 |
| 12 |
Tested up to: 7.1 |
| 13 |
Author: keywordrush.com |
| 14 |
Author URI: https://www.keywordrush.com |
| 15 |
Text Domain: content-egg |
| 16 |
Domain Path: /languages |
| 17 |
*/ |
| 18 |
|
| 19 |
/* |
| 20 |
* Copyright (c) www.keywordrush.com (email: support@keywordrush.com) |
| 21 |
*/ |
| 22 |
|
| 23 |
defined('\ABSPATH') || die('No direct script access allowed!'); |
| 24 |
|
| 25 |
define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\'); |
| 26 |
define(NS . 'PLUGIN_PATH', \plugin_dir_path(__FILE__)); |
| 27 |
define(NS . 'PLUGIN_FILE', __FILE__); |
| 28 |
define(NS . 'PLUGIN_DIR_URL', \plugins_url('', __FILE__)); |
| 29 |
define(NS . 'PLUGIN_RES', \plugins_url('res', __FILE__)); |
| 30 |
define(NS . 'CUSTOM_MODULES_DIR', 'content-egg-modules'); |
| 31 |
|
| 32 |
require_once PLUGIN_PATH . 'loader.php'; |
| 33 |
|
| 34 |
\add_action('plugins_loaded', array('\ContentEgg\application\Plugin', 'registerComponents')); |
| 35 |
\add_action('init', array('\ContentEgg\application\Plugin', 'getInstance')); |
| 36 |
|
| 37 |
if (\is_admin()) |
| 38 |
{ |
| 39 |
\register_activation_hook(__FILE__, array(\ContentEgg\application\Installer::getInstance(), 'activate')); |
| 40 |
\register_deactivation_hook(__FILE__, array(\ContentEgg\application\Installer::getInstance(), 'deactivate')); |
| 41 |
\register_uninstall_hook(__FILE__, array('\ContentEgg\application\Installer', 'uninstall')); |
| 42 |
|
| 43 |
\add_action('init', array('\ContentEgg\application\admin\PluginAdmin', 'getInstance')); |
| 44 |
} |
| 45 |
|