WP_Embed::autoembed_callback() – Callback function for WP_Embed::autoembed().

You appear to be a bot. Output may be restricted

Description

Callback function for WP_Embed::autoembed().

Usage

$string = WP_Embed::autoembed_callback( $matches );

Parameters

$matches
( array ) required – A regex match array.

Returns

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

Source

File name: wordpress/wp-includes/class-wp-embed.php
Lines:

1 to 8 of 8
  public function autoembed_callback( $matches ) {
    $oldval              = $this->linkifunknown;
    $this->linkifunknown = false;
    $return              = $this->WP_Embed::shortcode( array(), $matches[2] );
    $this->linkifunknown = $oldval;

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

 View on GitHub View on Trac