Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: embed_googlevideo

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2350       *
2351       * @since 2.9.0
2352       *
2353       * @param string $html    Google Video HTML embed markup.
2354       * @param array  $matches The RegEx matches from the provided regex.
2355       * @param array  $attr    An array of embed attributes.
2356       * @param string $url     The original URL that was matched by the regex.
2357       * @param array  $rawattr The original unmodified attributes.
2358       */
2359      return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr );
2360 }
2361
2362 /**
2363  * YouTube iframe embed handler callback.
2364  *
2365  * Catches YouTube iframe embed URLs that are not parsable by oEmbed but can be translated into a URL that is.
2366  *
2367  * @since 4.0.0
2368  *