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
224       *
225       * @since 2.9.0
226       *
227       * @param string $html    Google Video HTML embed markup.
228       * @param array  $matches The RegEx matches from the provided regex.
229       * @param array  $attr    An array of embed attributes.
230       * @param string $url     The original URL that was matched by the regex.
231       * @param array  $rawattr The original unmodified attributes.
232       */
233      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 );
234 }
235
236 /**
237  * YouTube iframe embed handler callback.
238  *
239  * Catches YouTube iframe embed URLs that are not parsable by oEmbed but can be translated into a URL that is.
240  *
241  * @since 4.0.0
242  *