embed_maybe_make_link
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
embed_maybe_make_link
wp-includes/class-wp-embed.php 493
return apply_filters( 'embed_maybe_make_link', $output, $url );