GC_Embed::autoembed_callback()
最后更新于:2021-11-27 14:39:54
GC_Embed::autoembed_callback( array$match)Callback function for GC_Embed::autoembed().
参数
- $match
-
(array) (Required) A regex match array.
响应
(string) The embed HTML on success, otherwise the original URL.
源文件
文件: gc-includes/class-gc-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];
}