wphooks.info - embed_maybe_make_link

embed_maybe_make_link

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-embed.php:
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
		$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 );
	}

	/**
	 * Find the oEmbed cache post ID for a given cache key.
	 *
	 * @since 4.9.0
	 *
	 * @param string $cache_key oEmbed cache key.
	 * @return int|null Post ID on success, null on failure.