wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_udims › WordPress Function

Od2.0.0
Przestarzały3.5.0
get_udims ( $width, $height )
Parametry: (2)
  • (int) $width Current width of the image
    Wymagane: Tak
  • (int) $height Current height of the image
    Wymagane: Tak
Zobacz:
Powrót:
  • (array) Shrunk dimensions (width, height).
Zdefiniowane na:
Codex:

Calculated the new dimensions for a downsampled image.



Źródło

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