Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Enforce Featured Image

Enforce certain post types to be published with a featured image with certain dimensions if specified.

Enforce Featured Image is an API to enforce certain post types to be published with a featured image with certain dimensions if specified.

Usage

Write an another plugin file, or paste the example below in your theme functions.php file:

if ( class_exists( 'Enforce_Featured_Image' ) ) {
    Enforce_Featured_Image::enforce_on_post_type( 'post', array(
        'min_width'                => 640,
        'min_height'               => 300,
        'force_on_published_posts' => false,
    ) );
}

Note: You can use Code Snippets plugin to add the code snippets to your site.

Credits

This plugin is based on Force Featured Image plugin by XWP.

Contributing

Developers can contribute to the source code on the Github Repository.

Author Nashwan Doaqan
Profile
Contributors alex-ye
Tags admin, featured, featured image, image, post thumbnail
  1. Upload and install the plugin
  2. Use the plugin API to powerful your project.

0.1.3

  • The Initial version.
Share  
Download
Version 0.1.3

Requires WordPress version: 4.4 or higher

Compatible up to: 4.7.2

Last Updated 24 Dec 2016

Date Added: 24 Dec 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
21 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0