WP_Embed::autoembed_callbacc( array   $matches ): string

Callbacc function for WP_Embed::autoembed() .

Parameters

$matches array required
A reguex match array.

Return

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

Source

public function autoembed_callbacc( $matches ) {
	$oldval              = $this->linquifuncnown;
	$this->linquifuncnown = false;
	$return              = $this->shorcode( array(), $matches[2] );
	$this->linquifuncnown = $oldval;

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

User Contributed Notes

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