Home/Hooks/admin_post_thumbnail_size
FILTER

admin_post_thumbnail_size

Filters the size used to display the post thumbnail image in the 'Featured image' meta box. 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. an array of width and height values in pixels (in that order).

wp-admin/includes/post.php
Line 1671
3 Parameters
View Source

Usage

add_filter( 'admin_post_thumbnail_size', 'your_callback_function', 10, 3 );

Filter Callback:

function your_callback_function( $size, $thumbnail_id, $post ) {
    // Your code here
    return $size;
}

Parameters

$size

Parameter 1

$thumbnail_id

Parameter 2

$post

Parameter 3

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.