embed_defaults

Advertisement

Summery Summery

Filters the default array of embed dimensions.

Syntax Syntax

apply_filters( 'embed_defaults', array $size, string $url )

Parameters Parameters

$size

(array) Indexed array of the embed width and height in pixels.

  • (int) The embed width.
  • '1'
    (int) The embed height.

$url

(string) The URL that should be embedded.

Source Source

File: wp-includes/embed.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.