oembed_min_max_width filter-hook . WP 4.4.0
Filters the allowed minimum and maximum widths for the oEmbed response.
Usage
add_filter( 'oembed_min_max_width', 'filter_function_name_4524' ); function filter_function_name_4524( $min_max_width ){ // filter... return $min_max_width; }
- $min_max_width(array)
Minimum and maximum widths for the oEmbed response.
-
min(int)
Minimum width.
Default: 200 - max(int)
Maximum width.
Default: 600
-
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
oembed_min_max_width
wp-includes/embed.php 539-545
$min_max_width = apply_filters( 'oembed_min_max_width', array( 'min' => 200, 'max' => 600, ) );