wp_embed_handler_video filter-hookWP 3.6.0

Filters the video embed output.

Usage

add_filter( 'wp_embed_handler_video', 'wp_kama_embed_handler_video_filter', 10, 4 );

/**
 * Function for `wp_embed_handler_video` filter-hook.
 * 
 * @param string $video   Video embed output.
 * @param array  $attr    An array of embed attributes.
 * @param string $url     The original URL that was matched by the regex.
 * @param array  $rawattr The original unmodified attributes.
 *
 * @return string
 */
function wp_kama_embed_handler_video_filter( $video, $attr, $url, $rawattr ){

	// filter...
	return $video;
}
$video(string)
Video embed output.
$attr(array)
An array of embed attributes.
$url(string)
The original URL that was matched by the regex.
$rawattr(array)
The original unmodified attributes.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_embed_handler_video()
wp_embed_handler_video
wp-includes/embed.php 317
return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );

Where the hook is used in WordPress

Usage not found.