public function get_embed_handler_html( $attr,
$url ) { $rawattr =
$attr;
$attr =
wp_parse_args( $attr,
wp_embed_defaults( $url ) );
ksort( $this->handlers
);
foreach ( $this->handlers
as $priority =>
$handlers ) { foreach ( $handlers as $id =>
$handler ) { if ( preg_match( $handler['regex'
],
$url,
$matches ) &&
is_callable( $handler['callback'
] ) ) { $return =
call_user_func( $handler['callback'
],
$matches,
$attr,
$url,
$rawattr );
if ( false !==
$return ) { /**
* Filters the returned embed HTML.
*
* @since 2.9.0
*
* @see WP_Embed::shortcode()
*
* @param string|false $return The HTML result of the shortcode, or false on failure.
* @param string $url The embed URL.
* @param array $attr An array of shortcode attributes.
*/