embed_maybe_make_link filter-hookWP 2.9.0

Filters the returned, maybe-linked embed URL.

Usage

add_filter( 'embed_maybe_make_link', 'wp_kama_embed_maybe_make_link_filter', 10, 2 );

/**
 * Function for `embed_maybe_make_link` filter-hook.
 * 
 * @param string $output The linked or original URL.
 * @param string $url    The original URL.
 *
 * @return string
 */
function wp_kama_embed_maybe_make_link_filter( $output, $url ){

	// filter...
	return $output;
}
$output(string)
The linked or original URL.
$url(string)
The original URL.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

WP_Embed::maybe_make_link()
embed_maybe_make_link
wp-includes/class-wp-embed.php 493
return apply_filters( 'embed_maybe_make_link', $output, $url );

Where the hook is used in WordPress

Usage not found.