wp_embed_handler_youtube


wp_embed_handler_youtube ( $matches, $attr, $url, $rawattr )

Parameters:
  • (array) matches The RegEx matches from the provided regex when calling wp_embed_register_handler().
  • (array) attr Embed attributes.
  • (string) url The original URL that was matched by the regex.
  • (array) rawattr The original unmodified attributes.
Returns:
  • (string) The embed HTML.
Defined at:

Description

YouTube iframe embed handler callback.Catches YouTube iframe embed URLs that are not parsable by oEmbed but can be translated into a URL that is.

Related Functions

wp_embed_handler_audio, wp_embed_handler_video, wp_embed_handler_googlevideo, wp_oembed_register_route, wp_embed_register_handler

Top Google Results

User discussions

wpseek mobile