wp_embed_defaults [ WordPress Function ]
wp_embed_defaults ( No parameters )
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_oembed_get, wp_get_widget_defaults, wp_install_defaults, wp_default_styles, wp_default_scripts
Create default array of embed parameters.
Source
<?php
function wp_embed_defaults() {
if ( !empty($GLOBALS['content_width']) )
$theme_width = (int) $GLOBALS['content_width'];
$width = get_option('embed_size_w');
if ( empty($width) && !empty($theme_width) )
$width = $theme_width;
if ( empty($width) )
$width = 500;
$height = get_option('embed_size_h');
if ( empty($height) )
$height = 700;
return apply_filters( 'embed_defaults', array(
'width' => $width,
'height' => $height,
) );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Docs for page media.php
wp_embed_defaults (line 1341). Create default array of embed parameters. return: Default embed parameters. since: 2.9.0; usedby: WP_Embed::shortcode() ...
phpdoc.wordpress.org - #11980 (oembed not respecting Media -> Maximum embed size ...
Showing code to call function to add non-whitelisted oembed provider. wp_embed_defaults-function.png · Download (24.7 KB) - added by philipsoutham 2 ...
core.trac.wordpress.org - #20151 (Add parameter for wp_embed_defaults()) – WordPress Trac
If we can add a parameter (like $url) to wp_embed_defaults(), then people can filter more intelligently as WordPress extends to allow more and more oEmbed.
core.trac.wordpress.org - wp_embed_defaults:WordPress私的マニュアル
2011年12月1日 ... wp_embed_defaults - 投稿記事中に埋め込む動画などのサイズを取得する.
elearn.jp