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

apply_filters('embed_oembed_html') is found 2 times:

  • /wp-includes/class-wp-embed.php line 291
    				 * @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
     
    		// 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: