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