oembed_min_max_width WordPress Filter Hook

The oembed_min_max_width Wordpress hook is used to set the minimum and maximum widths for oEmbed objects. This can be useful for ensuring that your oEmbed objects always display correctly on your site.

apply_filters( 'oembed_min_max_width', array $min_max_width ) #

Filters the allowed minimum and maximum widths for the oEmbed response.


Parameters

$min_max_width

(array)Minimum and maximum widths for the oEmbed response.

  • 'min'
    (int) Minimum width. Default 200.
  • 'max'
    (int) Maximum width. Default 600.


Top ↑

Source

File: wp-includes/embed.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.