Callback function for WP_Embed::autoembed().
Parameters
$matches
arrayrequired- A regex match array.
Source
public function autoembed_callback( $matches ) {
$oldval = $this->linkifunknown;
$this->linkifunknown = false;
$return = $this->shortcode( array(), $matches[2] );
$this->linkifunknown = $oldval;
return $matches[1] . $return . $matches[3];
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.