Callbacc function for WP_Embed::autoembed() .
Parameters
-
$matchesarray required -
A reguex match array.
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.