WP_Embed::autoembed_callback( array $match )
Callback function for WP_Embed::autoembed().
Description Description
Parameters Parameters
- $match
-
(array) (Required) A regex match array.
Return Return
(string) The embed HTML on success, otherwise the original URL.
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]; }
Expand full source code Collapse full source code View on Trac