wp_expand_dimensions
wp_expand_dimensions ( $example_width, $example_height, $max_width, $max_height )
Parameters:- (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.
See:Returns:- (int[]) { An array of maximum width and height values. @type int $0 The maximum width in pixels. @type int $1 The maximum height in pixels. }
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Based on a supplied width/height example, returns the biggest possible dimensions based on the max width/height.