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.2

apply_filters('pre_oembed_result') is found 1 times:

  • /wp-includes/class-wp-oembed.php line 406
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    * @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: