Title: Force Featured Image
Author: Jonathan Bardo
Published: <strong>2013 年 11 月 3 日</strong>
Last modified: 2015 年 2 月 25 日

---

搜索插件

![](https://ps.w.org/force-featured-image/assets/banner-772x250.png?rev=799342)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Force Featured Image

 作者：[Jonathan Bardo](https://profiles.wordpress.org/jonathanbardo/)

[下载](https://downloads.wordpress.org/plugin/force-featured-image.zip)

 * [详情](https://cn.wordpress.org/plugins/force-featured-image/#description)
 * [评价](https://cn.wordpress.org/plugins/force-featured-image/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/force-featured-image/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/force-featured-image/#developers)

 [支持](https://wordpress.org/support/plugin/force-featured-image/)

## 描述

**Development of this plugin is done [on GitHub](https://github.com/x-team/wp-force-featured-image).
Pull requests welcome. Please see [issues](https://github.com/x-team/wp-force-featured-image/issues)
reported there before going to the plugin forum.**

## 屏幕截图

[⌊The plugin shows the user a warning when he doesn't respect the image dimension⌉⌊
The plugin shows the user a warning when he doesn't respect the image dimension⌉[

The plugin shows the user a warning when he doesn’t respect the image dimension

## 安装

 1. Upload `force-featured-image` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. This plugin lets you specify which post-type requires to force a featured image
    to. It will also let you specify minimum dimensions for the image. Let’s say, for
    example, you want to force a user to set an image on the default post type with
    the following dimensions (400px * 400px). Put this code in the function.php of 
    your theme :
 4.     ```
        function theme_force_featured_image( $options ){
            $options['post'] = array(
                'width'  => 400,
                'height' => 400,
            );
    
            return $options;
        }
        add_filter( 'force_featured_image_post_type', 'theme_force_featured_image' );
        ```
    

## 评价

此插件暂无评价。

## 贡献者及开发者

「Force Featured Image」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jonathan Bardo ](https://profiles.wordpress.org/jonathanbardo/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)
 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

[帮助将「Force Featured Image」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/force-featured-image)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/force-featured-image/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/force-featured-image/)，或通过[RSS](https://plugins.trac.wordpress.org/log/force-featured-image/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/force-featured-image/)。

## 更新日志

#### 0.2.0

 * Add the ability to force a featured image with dimensions

#### 0.1.0

First Release

## 额外信息

 *  版本 **0.2.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/force-featured-image/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[featured](https://cn.wordpress.org/plugins/tags/featured/)
   [featured image](https://cn.wordpress.org/plugins/tags/featured-image/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [tinyMCE](https://cn.wordpress.org/plugins/tags/tinymce/)
 *  [高级视图](https://cn.wordpress.org/plugins/force-featured-image/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/force-featured-image/reviews/)

## 贡献者

 *   [ Jonathan Bardo ](https://profiles.wordpress.org/jonathanbardo/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)
 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/force-featured-image/)