wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_expand_dimensions › WordPress Function
Depuis2.9.0
Dépréciéen/a
› wp_expand_dimensions ( $example_width, $example_height, $max_width, $max_height )
| Paramètres: (4) |
|
| Voir: | |
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Based on a supplied width/height example, returns the biggest possible dimensions based on the max width/height.
Fonctions en relation: wp_shrink_dimensions, wp_render_dimensions_support, wp_constrain_dimensions, wp_get_audio_extensions, wp_apply_dimensions_support
Source
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 );
}