wp_embed_handler_googlevideo [ WordPress Function ]
wp_embed_handler_googlevideo ( $matches, $attr, $url, $rawattr )
| Parameters: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_oembed_add_provider, wp_handle_sideload, media_handle_sideload, wp_embed_register_handler, wp_embed_unregister_handler
The Google Video embed handler callback. Google Video does not support oEmbed.
Source
<?php
function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
// If the user supplied a fixed width AND height, use it
if ( !empty($rawattr['width']) && !empty($rawattr['height']) ) {
$width = (int) $rawattr['width'];
$height = (int) $rawattr['height'];
} else {
list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] );
}
return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&hl=en&fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- wp_embed_handler_googlevideo | A HitchHackers guide through ...
Jul 5, 2011 ... function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) { // If the user supplied a fixed width AND height, use it if ...
hitchhackerguide.com - wp_embed_handler_googlevideo() WordPress function reference ...
The Google Video embed handler callback. Google Video does not support oEmbed.
queryposts.com - Testimonials | InvestUkraine
{2,5})/videoplay\?docid=([\d-]+)(.*?)#i [callback] => wp_embed_handler_googlevideo ) ) ) [post_ID] => [usecache] => 1 [ linkifunknown] => 1 ) [1] => run_shortcode ...
investukraine.com - /wp-includes/default-embeds.php source - PHP Cross Reference ...
Jan 27, 2010 ... 21 */ 22 function wp_embed_handler_googlevideo( $matches, $attr, $url, $ rawattr ) { 23 // If the user supplied a fixed width AND height, use it ...
xref.yoast.com