WP Manifestindependent plugin directory
manifest / developer / featured-image-metabox-customizer-class

Featured Image Metabox Customizer Demo

A class to help override the Featured Image Metabox in WordPress

★ 16stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/bradvin/featured-image-metabox-customizer-class/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A class to help override the Featured Image Metabox in WordPress

Usage

Include the class and instantiate a new instance passing in the post type you want to change and the new values to show in the featured image metabox:

require_once 'class-featured-image-metabox-cusomizer.php';

new Featured_Image_Metabox_Customizer(array(
    'post_type'     => 'company',
    'metabox_title' => __( 'Company Logo', 'my-plugin-slug' ),
    'set_text'      => __( 'Set Company logo', 'my-plugin-slug' ),
    'remove_text'   => __( 'Remove Company logo', 'my-plugin-slug' )
));

Example Plugin

Check out plugin-featured-image-metabox-customizer.php for an example plugin.