Title: Enforce Featured Image
Author: Nashwan D
Published: <strong>December 23, 2016</strong>
Last modified: December 23, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/enforce-featured-image.svg)

# Enforce Featured Image

 By [Nashwan D](https://profiles.wordpress.org/alex-ye/)

[Download](https://downloads.wordpress.org/plugin/enforce-featured-image.0.1.3.zip)

 * [Details](https://wordpress.org/plugins/enforce-featured-image/#description)
 * [Reviews](https://wordpress.org/plugins/enforce-featured-image/#reviews)
 *  [Installation](https://wordpress.org/plugins/enforce-featured-image/#installation)
 * [Development](https://wordpress.org/plugins/enforce-featured-image/#developers)

 [Support](https://wordpress.org/support/plugin/enforce-featured-image/)

## Description

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](https://wordpress.org/plugins/code-snippets) plugin
to add the code snippets to your site.

#### Credits

This plugin is based on [Force Featured Image](https://wordpress.org/plugins/force-featured-image/)
plugin by XWP.

#### Contributing

Developers can contribute to the source code on the [Github Repository](https://github.com/nash-ye/wp-enforce-featured-image).

## Installation

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

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Enforce Featured Image” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

[Translate “Enforce Featured Image” into your language.](https://translate.wordpress.org/projects/wp-plugins/enforce-featured-image)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/enforce-featured-image/),
check out the [SVN repository](https://plugins.svn.wordpress.org/enforce-featured-image/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/enforce-featured-image/)
by [RSS](https://plugins.trac.wordpress.org/log/enforce-featured-image/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.3

 * The Initial version.

## Meta

 *  Version **0.1.3**
 *  Last updated **9 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.4 or higher **
 *  Tested up to **4.7.33**
 * Tags
 * [admin](https://wordpress.org/plugins/tags/admin/)[featured](https://wordpress.org/plugins/tags/featured/)
   [featured image](https://wordpress.org/plugins/tags/featured-image/)[image](https://wordpress.org/plugins/tags/image/)
   [post thumbnail](https://wordpress.org/plugins/tags/post-thumbnail/)
 *  [Advanced View](https://wordpress.org/plugins/enforce-featured-image/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/enforce-featured-image/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/enforce-featured-image/reviews/)

## Contributors

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/enforce-featured-image/)