oembed_min_max_width
oembed_min_max_width
Appears in: buddypress.10.1.0, buddypress.10.2.0, buddypress.10.3.0, buddypress.10.4.0, buddypress.10.5.0, buddypress.10.6.0, buddypress.11.0.0, buddypress.11.1.0, buddypress.11.2.0, buddypress.11.3.2, buddypress.11.4.0, buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.3.1.0, buddypress.3.2.0, buddypress.4.0.0, buddypress.4.1.0, buddypress.4.2.0, buddypress.4.3.0, buddypress.4.4.0, buddypress.5.0.0, buddypress.5.1.0, buddypress.5.1.1, buddypress.5.1.2, buddypress.5.2.0, buddypress.6.0.0, buddypress.6.1.0, buddypress.6.2.0, buddypress.6.3.0, buddypress.6.4.0, buddypress.7.0.0, buddypress.7.1.0, buddypress.7.2.0, buddypress.7.2.1, buddypress.7.3.0, buddypress.8.0.0, buddypress.9.0.0, buddypress.9.1.1, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3
Hook Type: filter
Displaying hooks found in version: wordpress-5.0.3apply_filters('oembed_min_max_width') is found 1 times:
- /wp-includes/embed.php line 520
* @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 );