pre_oembed_result

pre_oembed_result

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_oembed_result') is found 1 times:

  • /wp-includes/class-wp-oembed.php line 406
    		 * @param string       $url    The URL to the content that should be attempted to be embedded.
    		 * @param string|array $args   Optional. Additional arguments for retrieving embed HTML.
    		 *                             See wp_oembed_get() for accepted arguments. Default empty.
    		 */
    		$pre = apply_filters( 'pre_oembed_result', null, $url, $args );
    
    		if ( null !== $pre ) {
    			return $pre;
    		}
    
    		$data = $this->get_data( $url, $args );
    

See this hook used in plugins: