Enforce Featured Image Icon

Enforce Featured Image

By Nashwan D

Active Installs

0+

Last Updated

December 23, 2016

First Released

December 23, 2016

Download History (Last one month)


Contributors

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.

  1. Upload and install the plugin
  2. Use the plugin API to powerful your project.

No FAQ provided.

Changelog

0.1.3

  • The Initial version.
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
0.1.3 Download Stable
Development Download Trunk

Plugin Info

  • Version: 0.1.3
  • Last Updated: December 23, 2016
  • Active Installs: 0+
  • WordPress Version: 4.4 or higher
  • Tested up to: 4.7.33
  • PHP Version: or higher
  • Tags:    
    admin featured featured-image image post-thumbnail

Ratings


0.0 out of 5 stars. (0 reviews)

See all reviews
Scroll to Top