BACK TO DIRECTORY

Featured Image Extended

by Enrico Sorcinelli

0.0
(0 ratings)

Feature Image Extended extends featured image functionality allowing:

  • Hiding featured image in your themes for all post types.
  • Adding link to the featured image.
  • Adding thumbnail featured image in administration screens listing.
  • Featured image quick-editing.

Usage

Once the plugin is installed you can control settings in the following ways:

  • Programmatically by using featured_image_extended_settings filter (see below).
  • Using the Settings->Featured Image Extended administration screen.

If your theme uses a different call other than the_post_thumbnail()/get_the_post_thumbnail() in order to get the featured image, this plugin might not work.
So, in order to get extended featured image settings and apply to your pages, you should use featured_image_extended() (see below).

API

featured_image_extended( integer $post_id = null )

It returns an array containing featured image extended information of $post_id post (or current post if you don’t supply an argument) like following:

array(
    'show'   => true,
    'url'    => 'https://myurl.com',
    'target' => '_blank',
    'title'  => 'Image title',
)

Hooks

featured_image_extended_settings

Filter plugin settings values.

apply_filters( 'featured_image_extended_settings', array $settings )

featured_image_extended_admin_settings

Filter allowing to display or not the plugin settings page in the administration.

apply_filters( 'featured_image_extended_admin_settings', boolean $display )

Screenshots

The Featured image metabox in action.

The Featured image metabox in action.

The administration post list with featured image.

The administration post list with featured image.

The plugin settings page.

The plugin settings page.

Plugin Details

Active Installs
0
Total Downloads
1,502
Version
1.0.2
Requires WP
4.4
Requires PHP
5.2.4
Tested Up To
4.9.31
Added
2018-06-26
Last Updated
2018-06-28 8:47am GMT

Ratings

5
0
4
0
3
0
2
0
1
0