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



get_udims › WordPress Function

Desde2.0.0
Obsoleto3.5.0
get_udims ( $width, $height )
Parâmetros: (2)
  • (int) $width Current width of the image
    Required: Yes
  • (int) $height Current height of the image
    Required: Yes
Ver:
Retorna:
  • (array) Shrunk dimensions (width, height).
Definido em:
Codex:

Calculated the new dimensions for a downsampled image.



Fonte

function get_udims( $width, $height ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, 128, 96 );
}