Skip to content

This lightweight plugin allows to set and remove a Featured Image via the Quick Edit action screen in Post Type List Tables within the WordPress Admin. Out of the box this works for Posts, Pages and any public Post Type which supports Featured Images.

License

Notifications You must be signed in to change notification settings

deckerweb/quick-edit-featured-image

Repository files navigation

Quick Edit Featured Image

This lightweight plugin allows to set and remove a Featured Image via the Quick Edit action screen in Post Type List Tables within the WordPress Admin. Out of the box this works for Posts, Pages and any public Post Type which supports Featured Images. (Can be disabled indiviually via code snippet or filter.)

Quick Edit Featured Image – Inline edit Screenshot: example of inline edit view

Quick Edit Featured Image – Admin column Screenshot: the added column in the list table, plus placeholder image icon


Support Project | Installation | Updates | How Plugin Works | Custom Tweaks | Translations | FAQ | Changelog | Plugin Scope / Disclaimer


Support the Project

If you find this project helpful, consider showing your support by buying me a coffee! Your contribution helps me keep developing and improving this plugin.

Enjoying the plugin? Feel free to treat me to a cup of coffee ☕🙂 through the following options:


Installation

Quick Install – as Plugin

Download Plugin

  1. Download ZIP: quick-edit-featured-image.zip
  2. Upload via WordPress Plugins > Add New > Upload Plugin
  3. Once activated, you’ll see the new admin column "Image" in the Post & Page list tables for example.  

Alternative: Use as Code Snippet

Download Code Snippet

  1. Download .json: ddw-quick-edit-featured-image.code-snippets.json
  2. Activate or deactivate in your snippets plugin

This snippet version is for: Code Snippets (free & Pro), Advanced Scripts (Premium), Scripts Organizer (Premium)
➔ just use their elegant script import features
➔ in Scripts Organizer use the "Code Snippets Import"

For all other snippet manager plugins just use our plugin's main .php file quick-edit-featured-image.php and use its content as snippet (before saving your snippet: please check for your plugin if the opening <?php tag needs to be removed or not!).

➔ Please decide for one of both alternatives!

Tested Compatibility

  • WordPress: 6.7.2 / 6.8 Beta
  • ClassicPress: 2.4.0 / 2.4.1
  • PHP: 8.0 – 8.3

Updates

For Plugin Version:

  1. Alternative 1: Just download a new ZIP file (see above), upload and override existing version. Done.

  2. Alternative 2: Use the (free) Git Updater plugin and get updates automatically.

  3. Alternative 3: Upcoming! – In future I will built-in our own deckerweb updater. This is currently being worked on for my plugins. Stay tuned!

For Code Snippet Version:

Just manually: Download the latest Snippet version (see above) and import it in your favorite snippets manager plugin. – You can delete the old snippet; then just activate the new one. Done.


Description

How this Plugin Works

  1. Adds a new column to the List Table for Posts, Pages, Post Types – if these support Featured Image and are public (post type needs support for thumbnail in WordPress terms)
  2. Adds the Featured Image to Quick Edit (inline edit) – this saves a lot of clicks & time to set or remove a featured image for a lot of posts (no longer opening the post, setup, save, close tab or going back in browser ...)
  3. Placeholder icon image for all Posts/ Post Types that have no featured image yet – clicking on icon opens Quick Edit

Saves time for admins, site builders and editors!

Note, the following post types are disabled by default because they either have thumbnail support or are internal

  • WooCommerce product (if WooCommerce is active)
  • Meta Box (including AOI as well as Lite plugin suites) meta-box, mb-post-type, mb-taxonomy, mb-relationship', mb-settings-page, mb-views`

Custom Tweaks

via Constant:

1) Exclude Post Type(s):

To exclude a post type from the adding of the Featured Image column, just add a constant to your wp-config.php file, to a functions.php (of theme or child theme) or via a code snippet plugin. Here's an example – define the constant and add an array of post type slugs (note the square brackets which forming the array!):

define( 'QEFI_DISABLED_TYPES', [ 'woohoo-post-type', 'book', 'download-manager-plugin' ] );

That would result in NO Featured Image column and NO quick edit feature for these post type slugs: woohoo-post-type, book and download-manager-plugin

NOTE: The declaration needs every post type slug to be in single quotes, comma separated and the whole thing enclosed in square brackets like in the example above.

2) Use German Translations for Code Snippet Version:

If you use the snippet version of the "plugin" (since v1.3.0) and want Germanized labels/strings then just define in a little snippet:

define( 'QEFI_GERMAN_STRINGS', 'ja' );

That's all! (For another alternative, see under Translations)

via Filter (for developers):

Developers can use the filter 'ddw/quick_edit/post_types_disable' --> is defined in class method post_types_disable() This can be used to define which post types should not be supported (or should still be supported ...).

Typical usage:

add_filter( 'ddw/quick_edit/post_types_disable', 'prefix_your_custom_function' );
function prefix_your_custom_function( $post_types_disable ) {

	// do your stuff
	
	return (array) $post_types_disable;
}

Translations

Translations get loaded by the proven standard of WordPress (and ClassicPress). Since non .org-plugins are in some way "second class" now the plugin has its own translation loader (with default functions!). That way you can also use translations for Code Snippet version of the "plugin" (since v1.3.0). The only thing you have to do, upload the language files to this folder (create it first):

/wp-content/languages/quick-edit-featured-image/

Adding the language files would look something like that:

/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-de_DE.l10n.php
/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-de_DE_formal.l10n.php
/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-fr_FR.l10n.php

As you can see these are l10n.php files already – which is the new WordPress standard since WP 6.5 You can still use the "old" .mo files like so:

/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-de_DE.mo
/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-de_DE_formal.mo
/wp-content/languages/quick-edit-featured-image/quick-edit-featured-image-fr_FR.mo

The easiest way to create your own translations is with the packaged .pot file and the app Poedit – which can also create the l10n.php files since Poedit 3.6!

NOTE: This folder location is update-safe and will not overwritten by WordPress when updating language packs (for WP, Plugins, Themes). Updates to translations you need to handle yourself (that's the price of freedom from .org).


Frequently Asked Questions

Why not using an admin columns plugin?

Good question. But these type of plugins usually only tweak the appearance of the post type list table and add an image column. Most of them do not offer the quick editing. A preview of the image in the table view is always fine but just setting or editing it is much better 😉.

Can I use this plugin with ClassicPress?

Yes, you can! It works perfectly fine, I tested it with ClassicPress 2.4.x without any issues. It will be a great helper tool for any ClassicPress user, too! ... and it fully supports the "ClassicPress spirit" 😀. Note: For ClassicPress the plugin version is recommended, as the various snippet plugins seem not to be working correctly (with/ in CP).

Why did you create this plugin?

I saw and found the code snippet to achieve this feature. It was amazing and I know I wanted that for myself and all my client sites. When looking at the code snippet I wanted some enhancements so the decision was made to make a nice polished plugin out of it.

Why is this plugin not on wordpress.org plugin repository?

Because the restrictions there for plugin authors are becoming more and more. It would be possible, yes, but I don't want that anymore. The same for limited support forums for plugin authors on .org. I have decided to leave this whole thing behind me.


Changelog

The Releases

🎉 v1.3.0 – 2025-04-12

  • New: The "plugin" can now also be used as Code Snippet version, and is working identically! (see Installation above)
  • New: Confirmed full compatibility with ClassicPress 2.x
  • New: Own translation loader (with WP functions) to also have translations available for the code snippet version of the "plugin"
  • Change: The needed jQuery Script gets now added as inline script, the additional asset file is no longer needed!
  • Change: Always use the set post type label for Featured Image, also for translations
  • Change: Always use translation files, except for when a special constant is defined, load special strings (only regarding German locales!)
  • Update: .pot file, plus packaged German translations

🎉 v1.2.0 – 2025-04-06

  • New: Installable and updateable via Git Updater plugin
  • Improved: Script localization
  • Update: .pot file, plus packaged German translations, now including new l10n.php files!

🎉 v1.1.0 – 2025-03-28

  • New: Transformed code into class-based approach (more future-proof)
  • New: Add info to Site Health Debug, useful for our constants for custom tweaking
  • New: Added .pot file (to translate plugin into your language), plus packaged German translations
  • Plugin: Add meta links on WP Plugins page

🎉 v1.0.0 – 2025-03-14

  • Initial release – Yeah!
  • Custom disabling for post types via constant or filter
  • Plugin support: Disabled by default for WooCommerce and Meta Box post types

Plugin Scope / Disclaimer

This plugin comes as is.

Disclaimer 1: So far I will support the plugin for breaking errors to keep it working. Otherwise support will be very limited. Also, it will NEVER be released to WordPress.org Plugin Repository for a lot of reasons (ah, thanks, Matt!).

Disclaimer 2: All of the above might change. I do all this stuff only in my spare time.

Most of all: Have fun building great sites!!! ;-)


Icon used in promo graphics: © Remix Icon

Readme & Plugin Copyright: © 2025, David Decker – DECKERWEB.de

About

This lightweight plugin allows to set and remove a Featured Image via the Quick Edit action screen in Post Type List Tables within the WordPress Admin. Out of the box this works for Posts, Pages and any public Post Type which supports Featured Images.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published