wp_expand_dimensions( int $example_width, int $example_height, int $max_width, int $max_height ): int[]

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

Description

See also

Parameters

$example_widthintrequired
The width of an example embed.
$example_heightintrequired
The height of an example embed.
$max_widthintrequired
The maximum allowed width.
$max_heightintrequired
The maximum allowed height.

Return

int[] An array of maximum width and height values.
  • 0 int
    The maximum width in pixels.
  • 1 int
    The maximum height in pixels.

Source

				}
				break;
			}
		}
	}

	return $taxonomies;
}

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.