Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_embed_defaults [ WordPress Function ]

wp_embed_defaults ( No parameters )
Returns:
  • (array) Default embed parameters.
Defined at:



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ý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics