On this page
apply_filters( 'oembed_default_width', int $maxwidth )
Filters the maxwidth oEmbed parameter.
Parameters
$maxwidthint-
Maximum allowed width. Default 600.
Source
File: wp-includes/class-wp-oembed-controller.php. View all references
$maxwidth = apply_filters( 'oembed_default_width', 600 );
Related
Used By
| Used By | Description |
|---|---|
| WP_oEmbed_Controller::register_routes() wp-includes/class-wp-oembed-controller.php | Register the oEmbed REST API route. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_default_width