W3cubDocs

/WordPress

apply_filters( ‘oembed_min_max_width’, array $min_max_width )

Filters the allowed minimum and maximum widths for the oEmbed response.

Parameters

$min_max_widtharray
Minimum and maximum widths for the oEmbed response.
  • min int
    Minimum width. Default 200.
  • max int
    Maximum width. Default 600.

Source

$min_max_width = apply_filters(
	'oembed_min_max_width',
	array(
		'min' => 200,
		'max' => 600,
	)
);

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_min_max_width