Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_intermediate_image_sizes ›

Desde3.0.0
Obsoleton/a
get_intermediate_image_sizes ( Sem parâmetros )
Retorna:
  • (array) Returns a filtered array of image size strings.
Definido em:
Codex:

Gets the available intermediate image sizes.



Fonte

function get_intermediate_image_sizes() {
	$_wp_additional_image_sizes = wp_get_additional_image_sizes();
	$image_sizes                = array( 'thumbnail', 'medium', 'medium_large', 'large' ); // Standard sizes
	if ( ! empty( $_wp_additional_image_sizes ) ) {
		$image_sizes = array_merge( $image_sizes, array_keys( $_wp_additional_image_sizes ) );
	}

	/**
	 * Filters the list of intermediate image sizes.
	 *
	 * @since 2.5.0
	 *
	 * @param array $image_sizes An array of intermediate image sizes. Defaults
	 *                           are 'thumbnail', 'medium', 'medium_large', 'large'.
	 */
	return apply_filters( 'intermediate_image_sizes', $image_sizes );
}