wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_expand_dimensions › WordPress Function
Desde2.9.0
Obsoleton/a
› wp_expand_dimensions ( $example_width, $example_height, $max_width, $max_height )
Parâmetros: (4) |
|
Ver: | |
Retorna: |
|
Definido em: |
|
Codex: |
Based on a supplied width/height example, returns the biggest possible dimensions based on the max width/height.
Fonte
function wp_expand_dimensions( $example_width, $example_height, $max_width, $max_height ) { $example_width = (int) $example_width; $example_height = (int) $example_height; $max_width = (int) $max_width; $max_height = (int) $max_height; return wp_constrain_dimensions( $example_width * 1000000, $example_height * 1000000, $max_width, $max_height ); }