-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathac-addon-extra-columns.php
More file actions
41 lines (32 loc) · 1.03 KB
/
ac-addon-extra-columns.php
File metadata and controls
41 lines (32 loc) · 1.03 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
<?php
/*
Plugin Name: Admin Columns Pro - Extra (Experimental) Columns
Version: 1.0
Description: Add extra columns to Admin Columns that are not suitable for the core of Admin Columns Pro
Author: Codepress
Author URI: https://www.admincolumns.com
Text Domain: codepress-admin-columns
*/
use AC\Plugin\Version;
use ACA\ExtraColumns\Dependencies;
use ACA\ExtraColumns\ExtraColumns;
if ( ! defined('ABSPATH')) {
exit;
}
define('ACA_EXTRA_COLUMNS_FILE', __FILE__);
require_once __DIR__ . '/classes/Dependencies.php';
add_action('after_setup_theme', function () {
$dependencies = new Dependencies(plugin_basename(__FILE__), '1.1');
$dependencies->requires_acp('5.6');
$dependencies->requires_php('5.6.20');
if ($dependencies->has_missing()) {
return;
}
Autoloader::instance()->register_prefix('ACA\ExtraColumns', __DIR__ . '/classes/');
$plugin = ac_addon_extra_columns();
$plugin->register();
});
function ac_addon_extra_columns()
{
return new ExtraColumns(__FILE__, new Version('1.0'));
}