| 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 |
|