oembed_result

oembed_result

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_result') is found 2 times:

  • /wp-includes/class-wp-oembed-controller.php line 226
    			return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) );
    		}
    
    		/** This filter is documented in wp-includes/class-wp-oembed.php */
    		$data->html = apply_filters( 'oembed_result', _wp_oembed_get_object()->data2html( (object) $data, $url ), $url, $args );
    
    		/**
    		 * Filters the oEmbed TTL value (time to live).
    		 *
    		 * Similar to the {@see 'oembed_ttl'} filter, but for the REST API
    		 * oEmbed proxy endpoint.
    
  • /wp-includes/class-wp-oembed.php line 427
    		 * @param string       $url  URL of the content to be embedded.
    		 * @param string|array $args Optional. Additional arguments for retrieving embed HTML.
    		 *                           See wp_oembed_get() for accepted arguments. Default empty.
    		 */
    		return apply_filters( 'oembed_result', $this->data2html( $data, $url ), $url, $args );
    	}
    
    	/**
    	 * Attempts to discover link tags at the given URL for an oEmbed provider.
    	 *
    	 * @since 2.9.0
    

See this hook used in plugins: