You appear to be a bot. Output may be restricted
Description
Filters 'oembed_result' to ensure correct type.
Usage
$string = Test_oEmbed_Controller::filter_oembed_result( $data, $url, $args );
Parameters
- $data
- ( string|false ) required – The returned oEmbed HTML.
- $url
- ( string ) required – URL of the content to be embedded.
- $args
- ( array ) required – Optional arguments, usually passed from a shortcode.
Returns
string
Source
File name: wordpress-develop-tests/phpunit/tests/oembed/controller.php
Lines:
1 to 10 of 10
public function filter_oembed_result( $data, $url, $args ) { if ( ! is_string( $data ) && false !== $data ) { $this->fail( 'Unexpected type for $data.' ); } $this->assertIsString( $url ); $this->assertIsArray( $args ); $this->oembed_result_filter_count++; return $data; }