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:

Description

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

Related Functions

wp_shrink_dimensions, wp_constrain_dimensions, wp_get_audio_extensions, wp_image_src_get_dimensions, wp_send_json

Top Google Results

User discussions

wpseek mobile