wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_udims › WordPress Function

Depuis2.0.0
Dépréciée3.5.0
get_udims ( $width, $height )
Paramètres: (2)
  • (int) $width Current width of the image
    Requis: Oui
  • (int) $height Current height of the image
    Requis: Oui
Voir:
Retourne:
  • (array) Shrunk dimensions (width, height).
Défini(e) dans:
Codex:

Calculated the new dimensions for a downsampled image.



Source

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