All Projects → xwp → wp-force-featured-image

xwp / wp-force-featured-image

Licence: other
No description, website, or topics provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Force Featured Image

Banner Ever wanted to force a user to publish a post with a featured image of a certain dimension? Search no more.

Contributors: x-team, jonathanbardo, westonruter
Tags: tinyMCE, admin, image, featured-image, featured
Requires at least: 3.5
Tested up to: 3.7.1
Stable tag: trunk (master)
License: GPLv2 or later

Description

Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.

Installation

  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 :
	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' );

Screenshots

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

Changelog

0.2.0

  • Add the ability to force a featured image with dimensions

0.1.0

First Release

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].