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() {
	$default_sizes    = array( 'thumbnail', 'medium', 'medium_large', 'large' );
	$additional_sizes = wp_get_additional_image_sizes();

	if ( ! empty( $additional_sizes ) ) {
		$default_sizes = array_merge( $default_sizes, array_keys( $additional_sizes ) );
	}

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