Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_udims [ WordPress Function ]

get_udims ( $width, $height )
Parameters:
  • (int) $width Current width of the image
  • (int) $height Current height of the image
See:
Returns:
  • (mixed) Array(height,width) of shrunk dimensions.
Defined at:



Calculated the new dimensions for a downsampled image.

Source


<?php
function get_udims$width$height) {
    return 
wp_constrain_dimensions$width$height12896 );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics