Modify oembed code conditionally
Modify oembed code conditionally
Modify oembed code conditionally
This has been answered here: Removing WordPress Icon from oembed link footer . From the answer to that question: Here’s the code to remove the site icon markup from embeds: add_filter(‘get_site_icon_url’,’__return_false’, 10, 3); If you want to remove the entire site-icon + site-title then use this: add_filter(’embed_site_title_html’,’__return_false’); The right thing to do though would be … Read more
oembed_dataparse filter not running at all for standard YouTube embed
Advanced Custom Fields oEmbed video width and height
What is the correct way to obtain access to the WP_oEmbed object?
How do I keep my iframes responsive and scaled to fit their container?
How to disable oembed cache service?
How to modify the HTML output of Gutenberg block? (Youtube)
(Note that this answer deals with URL previewing in the Admin, Comments area. URLs are not ‘previewed’ in what the visitor sees in your posts’ comments.) If you inspect the source of the Comments page (in Admin, Comment area, where a link will be previewed if you hover over it), you will see that the … Read more
wp_ombed_get() will only process URLs from whitelisted oEmbed providers. The list of supported providers is available here. This means the only code that can be output is embed code from those providers. These are the same providers that WordPress supports for URLs in content, or the embed block in the block editor, so you be … Read more