Post_Thumbnail::get_image_sizes()

Fetches and returns the image sizes registered on the site, if any.


Return

(array) An array of the registered image sizes.


Top ↑

Source

File: src/Tribe/Utils/Post_Thumbnail.php

	public function get_image_sizes() {
		if ( null !== $this->image_sizes ) {
			return $this->image_sizes;
		}

		$image_sizes = array_merge( [ 'full' ], get_intermediate_image_sizes() );

		/**
		 * Filters the image sizes the `Tribe\Utils\Post_Thumbnail` class will manage and fetch data for.
		 *
		 * @since 4.9.14
		 *
		 * @param array $image_sizes All the available image sizes; this includes the default and the intermediate ones.
		 */
		$this->image_sizes = apply_filters( 'tribe_post_thumbnail_image_sizes', $image_sizes );

		return $this->image_sizes;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.14 Introduced.