• Trusted by 2,250,000+ users
  • 30-Day money back guarantee
  • 15+ years of experience
  • Woocommece, Elementor, Gutenberg, 6+

Enforce Featured Image

by Nashwan Doaqan

0 Ratings

Active Installations

Fewer than 10

Last Update

8 years

Quality

D

Plugin Description

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 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.

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached