wp_expand_dimensions Wordpress function


Description:

Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height.


Syntax:


Arguments:

(int) $example_width The width of an example embed.
(int) $example_height The height of an example embed.
(int) $max_width The maximum allowed width.
(int) $max_height The maximum allowed height.


Return Type:

(array) The maximum possible width and height based on the example ratio.


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_expand_dimensions


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×