oembed_default_width WordPress Filter Hook

The oembed_default_width hook is used to set the default width for an embedded video.

apply_filters( 'oembed_default_width', int $maxwidth ) #

Filters the maxwidth oEmbed parameter.


Parameters

$maxwidth

(int)Maximum allowed width. Default 600.


Top ↑

Source

File: wp-includes/class-wp-oembed-controller.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.