An open API service indexing awesome lists of open source software.

https://github.com/deckerweb/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.
https://github.com/deckerweb/quick-edit-featured-image

admin-column admin-columns classicpress classicpress-plugin featured-image list-table quick-edit wordpress wordpress-list-table wordpress-plugin wp-admin

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# 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](https://raw.githubusercontent.com/deckerweb/quick-edit-featured-image/master/assets-github/screenshot-inline-edit.jpg)
Screenshot: example of inline edit view

![Quick Edit Featured Image – Admin column](https://raw.githubusercontent.com/deckerweb/quick-edit-featured-image/master/assets-github/screenshot-admin-column.jpg)
Screenshot: the added column in the list table, plus placeholder image icon

* Contributors: [David Decker](https://github.com/deckerweb), [contributors](https://github.com/deckerweb/quick-edit-featured-image/graphs/contributors)
* Tags: featured image, quick edit, admin, list table, post types, image column
* Requires at least: 6.7
* Requires PHP: 7.4
* Stable tag: [main](https://github.com/deckerweb/quick-edit-featured-image/releases/latest)
* Donate link: https://paypal.me/deckerweb
* License: GPL v2 or later

---

[Support Project](#support-the-project) | [Installation](#installation) | [Updates](#updates) | [How Plugin Works](#description) | [Custom Tweaks](#custom-tweaks) | [Translations](#translations) | [FAQ](#frequently-asked-questions) | [Changelog](#changelog) | [Plugin Scope / Disclaimer](#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:

- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W81BNTZE)
- [Buy me a coffee](https://buymeacoffee.com/daveshine)
- [PayPal donation](https://paypal.me/deckerweb)
- [Join my **newsletter** for DECKERWEB WordPress Plugins](https://eepurl.com/gbAUUn)

---

## Installation

#### **Quick Install – as Plugin**
[![Download Plugin](https://raw.githubusercontent.com/deckerweb/quick-edit-featured-image/refs/heads/main/assets/button-download-plugin.png)](https://github.com/deckerweb/quick-edit-featured-image/releases/latest/download/quick-edit-featured-image.zip)
1. **Download ZIP:** [**quick-edit-featured-image.zip**](https://github.com/deckerweb/quick-edit-featured-image/releases/latest/download/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](https://raw.githubusercontent.com/deckerweb/quick-edit-featured-image/refs/heads/main/assets/button-download-snippet.png)](https://github.com/deckerweb/quick-edit-featured-image/releases/latest/download/ddw-quick-edit-featured-image.code-snippets.json)
1. **Download .json:** [**ddw-quick-edit-featured-image.code-snippets.json**](https://github.com/deckerweb/quick-edit-featured-image/releases/latest/download/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`](https://github.com/deckerweb/quick-edit-featured-image/blob/master/quick-edit-featured-image.php) and use its content as snippet (before saving your snippet: please check for your plugin if the opening ` 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**_](https://poedit.net/) – which can also create the `l10n.php` files since [_Poedit 3.6_](https://poedit.net/news/poedit-3.6-universal-merging/)!

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](#installation))
* 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](https://git-updater.com/)
* 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](https://remixicon.com/)

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