wphooks.info - embed_maybe_make_link

embed_maybe_make_link

The hook occurs in the following file:

wp-includes/class-wp-embed.php:
374
375
376
377
378
379
380
381
382
383
384
385
386
		$output = ( $this->linkifunknown ) ? '<a href="' . esc_url($url) . '">' . esc_html($url) . '</a>' : $url;

		/**
		 * Filters the returned, maybe-linked embed URL.
		 *
		 * @since 2.9.0
		 *
		 * @param string $output The linked or original URL.
		 * @param string $url    The original URL.
		 */
		return apply_filters( 'embed_maybe_make_link', $output, $url );
	}
}