oembed_min_max_width WordPress Filter Hook
The oembed_min_max_width Wordpress hook is used to set the minimum and maximum widths for oEmbed objects. This can be useful for ensuring that your oEmbed objects always display correctly on your site.
apply_filters( 'oembed_min_max_width', array $min_max_width ) #
Filters the allowed minimum and maximum widths for the oEmbed response.
Parameters
- $min_max_width
(array)Minimum and maximum widths for the oEmbed response.
- 'min'
(int) Minimum width. Default 200. - 'max'
(int) Maximum width. Default 600.
- 'min'
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |