-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathad-code-manager.php
More file actions
65 lines (56 loc) · 1.94 KB
/
ad-code-manager.php
File metadata and controls
65 lines (56 loc) · 1.94 KB
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
61
62
63
64
65
<?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.8.0
* 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: 6.4
*/
declare(strict_types=1);
namespace Automattic\AdCodeManager;
use Ad_Code_Manager;
use Automattic\AdCodeManager\UI\Conditional_Autocomplete;
use Automattic\AdCodeManager\UI\Contextual_Help;
use Automattic\AdCodeManager\UI\Plugin_Actions;
const AD_CODE_MANAGER_VERSION = '0.8.0';
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-conditional-autocomplete.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 () {
$conditional_autocomplete = new Conditional_Autocomplete();
$conditional_autocomplete->run();
$contextual_help = new Contextual_Help();
$contextual_help->run();
$plugin_actions = new Plugin_Actions();
$plugin_actions->run();
}
);