wphooks.info - oembed_default_width

oembed_default_width

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-oembed-controller.php:
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
	 * @since 4.4.0
	 */
	public function register_routes() {
		/**
		 * Filters the maxwidth oEmbed parameter.
		 *
		 * @since 4.4.0
		 *
		 * @param int $maxwidth Maximum allowed width. Default 600.
		 */
		$maxwidth = apply_filters( 'oembed_default_width', 600 );

		register_rest_route(
			'oembed/1.0',
			'/embed',
			array(
				array(
					'methods'  => WP_REST_Server::READABLE,
					'callback' => array( $this, 'get_item' ),
					'args'     => array(