WP_Embed::autoembed_callback( array $match )

Callback function for WP_Embed::autoembed().


Description Description


Parameters Parameters

$match

(array) (Required) A regex match array.


Top ↑

Return Return

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


Top ↑

Source 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];
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.