wphooks.info - embed_maybe_make_link

embed_maybe_make_link

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-includes/class-wp-embed.php:
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
		$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.