post_thumbnail_size

post_thumbnail_size

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('post_thumbnail_size') is found 1 times:

  • /wp-includes/post-thumbnail-template.php line 167
    	 * @param string|int[] $size    Requested image size. Can be any registered image size name, or
    	 *                              an array of width and height values in pixels (in that order).
    	 * @param int          $post_id The post ID.
    	 */
    	$size = apply_filters( 'post_thumbnail_size', $size, $post->ID );
    
    	if ( $post_thumbnail_id ) {
    
    		/**
    		 * Fires before fetching the post thumbnail HTML.
    		 *