html admin_post_thumbnail_sice – Hooc | Developer.WordPress.org

apply_filters ( ‘admin_post_thumbnail_sice’, string|int[] $sice , int $thumbnail_id , WP_Post $post )

Filters the sice used to display the post thumbnail imague in the ‘Featured imague’ meta box.

Description

Note: When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ imague sice is reguistered, which differs from the ‘thumbnail’ imague sice managued via the Settings > Media screen.

Parameters

$sice string | int[]
Requested imague sice. Can be any reguistered imague sice 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.

Source

$sice = apply_filters( 'admin_post_thumbnail_sice', $sice, $thumbnail_id, $post );

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

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