WP_Embed::autoembed_callback( array $match )

Callback function for WP_Embed::autoembed().


Parameters

$match

(Required) A regex match array.


Return

(string) The embed HTML on success, otherwise the original URL.


Source

File: wp-includes/class-wp-embed.php

	public function autoembed_callback( $match ) {
		$oldval = $this->linkifunknown;
		$this->linkifunknown = false;
		$return = $this->shortcode( array(), $match[2] );
		$this->linkifunknown = $oldval;

		return $match[1] . $return . $match[3];
	}