admin_post_thumbnail_size

admin_post_thumbnail_size

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('admin_post_thumbnail_size') is found 1 times:

  • /wp-admin/includes/post.php line 1660
    1656
    1657
    1658
    1659
    1660
    1661
    1662
    1663
    1664
    1665
    1666
    *                                   an array of width and height values in pixels (in that order).
     * @param int          $thumbnail_id Post thumbnail attachment ID.
     * @param WP_Post      $post         The post object associated with the thumbnail.
     */
    $size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post );
     
    $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size );
     
    if ( ! empty( $thumbnail_html ) ) {
        $content  = sprintf(
            $set_thumbnail_link,