-
Notifications
You must be signed in to change notification settings - Fork 51
/
ad-code-manager.php
60 lines (52 loc) · 1.72 KB
/
ad-code-manager.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Ad Code Manager
*
* @package Automattic\AdCodeManager
* @author Automattic and contributors
* @copyright 2012 and later, Automattic and contributors
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Ad Code Manager
* Plugin URI: https://wordpress.org/plugins/ad-code-manager/
* Description: Easy ad code management.
* Version: 0.7.1
* Author: Automattic and contributors
* Author URI: https://github.com/Automattic/ad-code-manager/graphs/contributors
* Text Domain: ad-code-manager
* License: GPL-2.0-or-later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* GitHub Plugin URI: https://github.com/Automattic/ad-code-manager/
* Requires PHP: 7.4
* Requires WP: 5.7
*/
declare(strict_types=1);
namespace Automattic\AdCodeManager;
use Ad_Code_Manager;
use Automattic\AdCodeManager\UI\Contextual_Help;
use Automattic\AdCodeManager\UI\Plugin_Actions;
const AD_CODE_MANAGER_VERSION = '0.7.1';
const AD_CODE_MANAGER_FILE = __FILE__;
require_once __DIR__ . '/src/class-acm-provider.php';
require_once __DIR__ . '/src/class-acm-wp-list-table.php';
require_once __DIR__ . '/src/class-acm-widget.php';
require_once __DIR__ . '/src/class-ad-code-manager.php';
require_once __DIR__ . '/src/UI/class-contextual-help.php';
require_once __DIR__ . '/src/UI/class-plugin-actions.php';
add_action(
'plugins_loaded',
function () {
$GLOBALS['ad_code_manager'] = new Ad_Code_Manager();
$GLOBALS['ad_code_manager']->run();
}
);
add_action(
'admin_init',
function () {
$contextual_help = new Contextual_Help();
$contextual_help->run();
$plugin_actions = new Plugin_Actions();
$plugin_actions->run();
}
);