embed_maybe_make_link хук-фильтрWP 2.9.0

Filters the returned, maybe-linked embed URL.

Использование

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(строка)
The linked or original URL.
$url(строка)
The original URL.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.