plugin-icon

Enforce Featured Image

作者:Nashwan D·
Enforce certain post types to be published with a featured image with certain dimensions if specified.
版本
0.1.3
最后更新
Dec 23, 2016

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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.7.31
这个插件是可用的下载,适用于您的站点。