pressupinc / require-featured-image

A WordPress plugin to require that a Featured Image is added to a post before it gets published
21 stars 16 forks source link

=== Require Featured Image === Contributors: pressupinc, davidbhayes Plugin URI: http://pressupinc.com/wordpress-plugins/require-featured-image/ Tags: featured image, images, edit, post, admin, require featured image, image, media, thumbnail, thumbnails, post thumbnail, photo, pictures Requires at least: 3.5 Tested up to: 5.3.1 Stable tag: 1.5.0 License: MIT License URI: http://opensource.org/licenses/MIT

Requires content you specify to have a featured image set before they can be published.

== Description ==

= Simplify Your Editing Life =

Requires your various post types — as specified in a simple options page — to have a featured image set before they can be published. If a lack of featured images causes your layout to break, or just look less-than-optimal, this is the plugin for you.

Rather than forcing you to manually enforce your editorial standards of including a featured image in every post, if your contributors fail to add a featured image to a post before publishing it they'll simply find it impossible to publish.

= Setting up the Plugin =

By default it works on the "Post" content type only, but you can specify other content types, or turn it off for Posts in the new options page in your left sidebar: Settings > Req Featured Image. Simply check and uncheck the appropriate types, set a minimum image size if you desire, hit save and you're all set. Happy publishing!

= Anything else? =

Don't forget to check out the plugins page on our website, and don't hesitate to browse and fork on GitHub. Have a unique WordPress project you need help on? Get in touch with Press Up to set yourself up for success.

== Installation ==

Activate the plugin. No other steps are necessary to require featured images on Posts only.

If you want to require featured images on a different content type, or allow Posts to be published without them simply go to the settings page in your left sidebar: Settings > Req Featured Image. Check and uncheck the appropriate types, set a minimum image size if you desire, hit "Save", and you're all set. Happy publishing!

== Frequently Asked Questions ==

= What post (content) types does this plugin work for? =

Every "custom post type" — or variety of content — is now supported. Before 0.5.0, this plugin could only be used to force people include featured images on Posts, not Pages or any custom post type. Now all of them are a simple few clicks on the options page away.

= How does it prevent people from publishing a post without featured images? =

There are two methods: one is some strong Javascript on the edit screen that makes it very clear to people working there that they need to add a featured images and makes it impossible for them to press the Publish button unless they've added on.

If that failed for any reason, it also hooks into the publish method and stops publishing when no featured image is present. This should prevent publishing even if an author has Javascript off, or if publishing is attempted through more obscure methods.

= I'm not seeing one of my content types on the settings page. Why? =

To simplify the settings page, and avoid confusion, only content types that support Featured Images will appear on the page. It wouldn't make sense for us to try to enforce that a content type that can't have a featured image set can't be published without it. If you want to require that a content type has a featured image but it doesn't currently support it, get in touch with your developer, fiddle with the register_post_type() call creating the content type yourself, or get in touch with us at Press Up, we love to help!

= Why would I use this plugin? =

Because you want it to be required that your posts have featured images before they be published. If you'd like that your posts have featured images, but it's not a show-stopper for your editorial standards, this plugin may not be for you.

= Are there any options? =

Yep, just for different "custom post types." In your left sidebar under Settings, you should see "Req Featured Image". There are options. You can choose which Post Types you want check as well as setting a minimum size for the featured image. Happy publishing!

= Support for other languages? =

Yes. We're currently (early 2016) hoping that these can start being done on traslate.wordpress.org, so if you'd like to contribute one and are familiar with the process, go ahead and do it there.

As the dust is still settling on that process, we will continue supporting other languages via contributions of translations which will be rolled into the next point release of the plugin, as we've done historically.

== Screenshots ==

  1. The warning that you see when editing a post that doesn't have a featured image set. The "Publish" button is also disabled.

  2. The settings page, which lets you specify which post types the plugin should operate on.

== CHANGELOG ==

= 1.5.0 (2019.12.17) =

= 1.4.1 (2019.05.29) =

= 1.4.0 (2018.11.09) =

= 1.3.0 (2017.08.16) =

= 1.2.3 (2016.11.23) =

= 1.2.2 (2016.02.22) =

= 1.2.1 (2016.02.08) =

= 1.2.0 (2016.02.01) =

= 1.1.4 (2015.12.7) =

= 1.1.3 (2015.10.19) =

= 1.1.2 (2015.10.01) =

= 1.1.1 (2015.06.22) =

= 1.1.0 (2015.06.21) =

= 1.0.10 (2015.05.24) =

= 1.0.9 (2015.04.21) =

= 1.0.8 (2015.04.21) =

= 1.0.7 (2015.04.21) =

= 1.0.6 (2015.03.24) =

= 1.0.5 (2015.03.18) =

= 1.0.4 (2015.03.10) =

= 1.0.3 (2015.01.27) =

= 1.0.2 (2015.01.24) =

= 1.0.1 (2015.01.24) =

= 1.0.0 (2015.01.24) =

= 0.6.5 (2015.01.12) =

= 0.6.4 (2014.09.18) =

= 0.6.3 (2013.04.30) =

= 0.6.2 (2013.04.05) =

= 0.6.1 (2013.03.02) =

= 0.6.0 (2013.03.02) =

= 0.5.0 (2013.12.31) =

= 0.3.0 (2013.08.07) =

= 0.2.2 (2013.08.02) =

= 0.2.1 (2013.08.02) =

= 0.2 (2013.08.01) =