oembed_fetch_url

oembed_fetch_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('oembed_fetch_url') is found 1 times:

  • /wp-includes/class-wp-oembed.php line 550
    		 * @param string $url      URL of the content to be embedded.
    		 * @param array  $args     Optional. Additional arguments for retrieving embed HTML.
    		 *                         See wp_oembed_get() for accepted arguments. Default empty.
    		 */
    		$provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );
    
    		foreach ( array( 'json', 'xml' ) as $format ) {
    			$result = $this->_fetch_with_format( $provider, $format );
    			if ( is_wp_error( $result ) && 'not-implemented' === $result->get_error_code() ) {
    				continue;
    			}
    

See this hook used in plugins: