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:
  • (array) The maximum possible width and height based on the example ratio.
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_send_json, wp_explain_nonce

Top Google Results

User discussions

wpseek mobile