PluginProbe
Featured Image Column / 1.2.1
Featured Image Column v1.2.1
1.3.0 trunk 0.1.5 0.1.6 0.2.3 0.3.2 1.1.0 1.2.0 1.2.1
featured-image-column / featured-image-column.php

featured-image-column.php in Featured Image Column 1.2.1, at featured-image-column.php

42 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Featured Image Column
5 * Plugin URI: https://austin.passy.co/wordpress-plugins/featured-image-column
6 * Description: Adds a column to the edit screen with the featured image if it exists.
7 * Version: 1.2.0
8 * Author: Austin Passy
9 * Author URI: httsp://austin.passy.co
10 * Requires at least: 6.2
11 * Tested up to: 7.1.0
12 * Requires PHP: 8.0
13 * @copyright 2009 - 2025
14 * @author Austin Passy
15 * @link http://frosty.media/
16 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 *
22 * @package TheFrosty\Featured_Image_Column
23 */
24
25 use TheFrosty\FeatureImageColumn;
26
27 if (!function_exists('add_filter')) {
28 header('Status: 403 Forbidden');
29 header('HTTP/1.1 403 Forbidden');
30 exit;
31 }
32
33 add_action('_admin_menu', function (): void {
34 require_once __DIR__ . '/src/FeatureImageColumn.php';
35 (new FeatureImageColumn(__FILE__))->addHooks();
36 });
37
38 register_activation_hook(__FILE__, static function (): void {
39 require_once __DIR__ . '/src/FeatureImageColumn.php';
40 (new FeatureImageColumn(__FILE__))->activationHook();
41 });
42