embed_oembed_html

embed_oembed_html

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('embed_oembed_html') is found 2 times:

  • /wp-includes/class-wp-embed.php line 291
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
             * @param string       $url     The attempted embed URL.
             * @param array        $attr    An array of shortcode attributes.
             * @param int          $post_id Post ID.
             */
            return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_id );
        }
    }
     
    /**
     * Filters whether to inspect the given URL for discoverable link tags.
     *
  • /wp-includes/class-wp-embed.php line 374
    371
    372
    373
    374
    375
    376
    377
    378
    379
        // If there was a result, return it.
        if ( $html ) {
            /** This filter is documented in wp-includes/class-wp-embed.php */
            return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_id );
        }
     
        // Still unknown.
        return $this->maybe_make_link( $url );
    }

See this hook used in plugins: