codepress-admin-columns
Last commit date
assets
2 days ago
classes
2 days ago
languages
2 days ago
settings
2 days ago
templates
2 days ago
vendor
2 days ago
api.php
2 days ago
changelog.txt
2 days ago
codepress-admin-columns.php
2 days ago
readme.txt
2 days ago
codepress-admin-columns.php
73 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /* |
| 6 | Plugin Name: Admin Columns |
| 7 | Version: 7.1.4 |
| 8 | Description: Add, reorder, and customize columns in your WordPress admin table for any post type, users, and media - no code required. |
| 9 | Author: AdminColumns.com |
| 10 | Author URI: https://www.admincolumns.com |
| 11 | Plugin URI: https://www.admincolumns.com |
| 12 | Requires PHP: 7.4 |
| 13 | Requires at least: 6.2 |
| 14 | Text Domain: codepress-admin-columns |
| 15 | Domain Path: /languages |
| 16 | License: GPL v3 |
| 17 | |
| 18 | Admin Columns Plugin |
| 19 | Copyright (C) 2011-2026, Admin Columns - info@admincolumns.com |
| 20 | This program is free software: you can redistribute it and/or modify |
| 21 | it under the terms of the GNU General Public License as published by |
| 22 | the Free Software Foundation, either version 3 of the License, or |
| 23 | (at your option) any later version. |
| 24 | |
| 25 | This program is distributed in the hope that it will be useful, |
| 26 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 | GNU General Public License for more details. |
| 29 | |
| 30 | You should have received a copy of the GNU General Public License |
| 31 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 32 | */ |
| 33 | |
| 34 | use AC\DI\Container; |
| 35 | use AC\Loader; |
| 36 | use AC\Vendor\DI\ContainerBuilder; |
| 37 | |
| 38 | if (! defined('ABSPATH')) { |
| 39 | exit; |
| 40 | } |
| 41 | |
| 42 | if (! is_admin()) { |
| 43 | return; |
| 44 | } |
| 45 | |
| 46 | define('AC_FILE', __FILE__); |
| 47 | define('AC_VERSION', '7.1.4'); |
| 48 | |
| 49 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 50 | |
| 51 | add_action('after_setup_theme', static function () { |
| 52 | require __DIR__ . '/vendor/autoload.php'; |
| 53 | require __DIR__ . '/api.php'; |
| 54 | |
| 55 | if (! defined('ACP_VERSION')) { |
| 56 | $container = new Container( |
| 57 | (new ContainerBuilder()) |
| 58 | ->addDefinitions(require __DIR__ . '/settings/container-definitions.php') |
| 59 | ->build() |
| 60 | ); |
| 61 | |
| 62 | new Loader($container); |
| 63 | } |
| 64 | }, 1); |
| 65 | |
| 66 | add_action('after_setup_theme', static function () { |
| 67 | /** |
| 68 | * For loading external resources, e.g. column settings. |
| 69 | * Can be called from plugins and themes. |
| 70 | */ |
| 71 | do_action('ac/ready'); |
| 72 | }, 2); |
| 73 |