Linux 软件免费装
Banner图

Featured Image Column

开发者 austyfrosty
DH-Shredder
MartyThornley
chrisjean
更新时间 2017年6月26日 01:27
捐献地址: 去捐款
PHP版本: 4.4 及以上
WordPress版本: 4.8

标签

admin column featured image

下载

0.1.5 0.1.6 0.2.3 0.3.2

详情介绍:

As of version 0.2.2 you can select which post types you'd like to have the image column. It simply adds a column before the title (far left) the show's the posts featured image if it's supported and exists. Want to change the default image? Simply filter you own image by using featured_image_column_default_image or filter your own CSS by using the featured_image_column_css filter hook. Example actions/filters Add support for a custom default image ` function my_custom_featured_image_column_image( $image ) { if ( !has_post_thumbnail() ) { return trailingslashit( get_stylesheet_directory_uri() ) . 'images/featured-image.png'; } return $image; } add_filter( 'featured_image_column_default_image', 'my_custom_featured_image_column_image' ); **Remove support for post types** *Use thefeatured_image_column_initaction hook for your filter.* function frosty_featured_image_column_init_func() { add_filter( 'featured_image_column_post_types', 'frosty_featured_image_column_remove_post_types', 11 ); // Remove } add_action( 'featured_image_column_init', 'frosty_featured_image_column_init_func' ); function frosty_featured_image_column_remove_post_types( $post_types ) { foreach( $post_types as $key => $post_type ) { if ( 'post-type' === $post_type ) // Post type you'd like removed. Ex: 'post' or 'page' unset( $post_types[$key] ); } return $post_types; } ` Add your own CSS to change the size of the image. ` /**

安装:

Follow the steps below to install the plugin.
  1. Upload the featured-image-column directory to the /wp-content/plugins/ directory. OR click add new plugin in your WordPress admin.
  2. Activate the plugin through the 'Plugins' menu in WordPress.

屏幕截图:

  • Post edit.php screen.

升级注意事项:

0.3 Code cleanup, compatibility updates for WordPress 4.8, quick edit no longer collapses the columns and the settings actually toggle post_types on/off! 0.2.2 Happy holidays! If you like the updates please consider donating. PayPal: austin@thefrosty.com. WP 4.1 and post type settings. 0.2.1 Happy holidays! If you like the updates please consider donating. PayPal: austin@thefrosty.com. WP 3.8 and PHP 5.3+ compat. 0.1.9 Happy 311 day! Finally fixed duplicate image output. Yay for cache array(). 0.1.7 Working on fixed repeating images. 0.1.6 Cleaned up code thanks to Chris @ iThemes. All errors should be suppressed and clear. 0.1.2 Code cleanup, attempt at fixing a fatal error when no posts exist (still in progress). 0.1.1 Adds support for public $post_type's that support 'post-thumbnails'.

更新日志:

Version 0.3.2 (06/26/17) Version 0.3.1 (06/26/17) Version 0.3 (06/25/17) Version 0.2.3 (04/4/15) Version 0.2.2 (12/3/14) Version 0.2.1 (12/3/13) Version 0.2.0 (12/2/13) Version 0.1.10 (9/5/13) Version 0.1.9 (3/11/12) Version 0.1.8 (2/16/12) Version 0.1.7 (1/18/12) Version 0.1.6 (11/21/11) Version 0.1.5 (10/18/11) Version 0.1.4 (10/17/11) Version 0.1.3 (10/17/11) Version 0.1.2 (9/30/11) Version 0.1.1 (9/20/11) Version 0.1 (9/14/11)