apply_filters( 'admin_post_thumbnail_size', string|int[] $size, int $thumbnail_id, WP_Post $post )

Filters the size used to display the post thumbnail image in the ‘Featured image’ meta box.


Description Description

Note: When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ image size is registered, which differs from the ‘thumbnail’ image size managed via the Settings > Media screen.


Top ↑

Parameters Parameters

$size

(string|int[]) Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

$thumbnail_id

(int) Post thumbnail attachment ID.

$post

(WP_Post) The post object associated with the thumbnail.


Top ↑

Source Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.