wphooks.info - post_thumbnail_size

post_thumbnail_size

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/post-thumbnail-template.php:
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
	/**
	 * Filters the post thumbnail size.
	 *
	 * @since 2.9.0
	 * @since 4.9.0 Added the `$post_id` parameter.
	 *
	 * @param string|array $size    The post thumbnail size. Image size or array of width and height
	 *                              values (in that order). Default 'post-thumbnail'.
	 * @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.
		 *
		 * Provides "just in time" filtering of all filters in wp_get_attachment_image().
		 *
		 * @since 2.9.0