wphooks.info - oembed_min_max_width

oembed_min_max_width

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/embed.php:
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
	 *
	 * @since 4.4.0
	 *
	 * @param array $min_max_width {
	 *     Minimum and maximum widths for the oEmbed response.
	 *
	 *     @type int $min Minimum width. Default 200.
	 *     @type int $max Maximum width. Default 600.
	 * }
	 */
	$min_max_width = apply_filters( 'oembed_min_max_width', array(
		'min' => 200,
		'max' => 600
	) );

	$width  = min( max( $min_max_width['min'], $width ), $min_max_width['max'] );
	$height = max( ceil( $width / 16 * 9 ), 200 );

	$data = array(
		'version'       => '1.0',