Linux 软件免费装

Enforce Featured Image

开发者 alex-ye
更新时间 2016年12月25日 03:27
PHP版本: 4.4 及以上
WordPress版本: 4.7
版权: GPLv3 or later
版权网址: 版权信息

标签

image admin featured featured image post thumbnail

下载

0.1.3

详情介绍:

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.

更新日志:

0.1.3