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.
Source
* @since 2.5.0
* @since 4.7.0 Introduced the `$output` parameter.
*
* @param int|array|object $attachment Attachment ID, data array, or data object.
* @param string $output Output type. 'names' to return an array of taxonomy names,
* or 'objects' to return an array of taxonomy objects.
* Default is 'names'.
* @return string[]|WP_Taxonomy[] List of taxonomies or taxonomy names. Empty array on failure.
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.