To prevent WordPress from automatically turning URLs into embeds, you can disable oEmbed for internal links. One way to do this is by adding a small function to your theme’s functions.php file or a site-specific plugin. This function would stop WordPress from treating your own site’s URLs as oEmbed sources.
Try this:
function disable_self_pingbacks( &$links ) {
foreach ( $links as $l => $link ) {
unset($links[$l]);
}
}
add_action( 'pre_ping', 'disable_self_pingbacks' );
Related Posts:
- WordPress Mediaelement – Youtube Videos Embed Options
- WP Oembed not passing through the “autoplay=1” variable
- How to add new embed handler not supported by oembed
- Manipulating oembed_dataparse stopped working for YouTube embeds
- Youtube – Embed as IFRAME
- wp_embed_register_handler is not working
- Any way to use a custom Parameter for vimeo embed without using an iframe?
- Removing WordPress Icon from oembed link footer
- Hiding Comments Icon On oembed
- Can I use wp_oembed_get to detect a valid embeddable link or is there a better way to do so?
- Embeding YouTube video via a template function throws iframe cross-domain policy error
- extra text in Vimeo Embedded videos
- Check if page is embeded
- Video Embed with Captions in Turkish
- Embed Post in external page
- How can I force oEmbed to display fixed height & width dimensions?
- How to embed YouTube videos in posts without adding suggested videos at the end?
- Div around YouTube video
- How to make enqueue_embed_scripts work with the embed_template filter
- Add class and change src type inside wp_oembed_get
- How to disable URL preview in WordPress comments
- Remove wordpress embed share icon?
- Youtube iframe embed keeps disappearing from page
- Adding an official oEmbed provider to WordPress
- How can I create iframe/embeddable content from my WordPress site?
- Completely disable oEmbed and auto-embed on frontend and post editor?
- add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
- How do I hide related videos at the end of a YouTube playlist embed code?
- How do I embed youtube videos with https instead of http in the URL?
- Get first video from the post (both embed and video shortcodes)
- WordPress Gutenberg Embed Blocks Are Not Responsive
- Embed iframe or html page into dashboard widget
- Modify youtube video size on one page and show another size on different page
- Embed .mov file via ‘Add Media’ not working
- How to remove the embed_footer?
- use of tag into wordpress
- Is it possible to modify the default YouTube embed attributes string?
- ted talks embed fixed, but can’t control size
- Embed WordPress Admin in an iframe
- Youtube parameters within WordPress embed code?
- How to add oEmbed support to my theme?
- How to create a static player top or bottom of wordpress?
- Which HTTP headers to use for subdomain embedding?
- Audio Playlists – Multiple file type support?
- wp_insert_post iframe missing
- Vimeo video embeds doesnt seem to work with ACF [closed]
- vimeo/youtube video embed with thumbnails
- Search XML file from within WordPress?
- WordPress keeps altering my embed code
- disable video URL auto-embedding for a part of the post
- Instagram URL is converted into oEmbed
- Responsive embed for the video shortcode
- YouTube embed parameters?
- Embed Youtube video link in wordpress editor
- WordPress get embedded/attachment video
- pdf (25MB) – how to display and enable download?
- Is there a way to create embed codes from wordpress/buddypress content?
- Display total questions of Moodle in WordPress [closed]
- How to display real-time data which is stored in an IBM Cloud web app
- Embedding custom posts with REST API
- How can I remove the first video from a post and feature it?
- Embedded tweets get wrapped in tags and fail to load
- How to change the way wp_embed handles only youtube videos?
- WordPress kills an iframe’s apostrophes
- How To Display Content from a website on wordpress page?
- Reusing header.php from Yii application
- Add custom parameters in SoundClound embed
- How do I not embed the SoundCloud player? I just want the link
- Add Watermark to PDF’s of logged in user in WordPress upon upload to media library [closed]
- How can I embed an Excel spreadsheet that allows users to edit certain fields, but is still “read-only”
- Help with jot form pro embed code
- changes after I save a post
- Is there a way to do nested embeds in the REST API?
- Embed Latest Track (Dynamic Updating) SoundCloud
- Embed wikipedia page in WordPress?
- Include User ID in iFrame URL
- Embed post wont work on custom post type
- How to embed my latest WordPress post into an external page
- Facebook embeds fixing with functions.php
- Embed video from streamtape using direct link
- [embed]Using WordPress 5.5.1 there is no embed option after the video is uploaded
- Embedded videos not displaying on page
- Disable automatic embed links
- Security when outputing wp_oembed_get code
- Embed Microsoft Forms into WordPress page
- How do I keep my iframes responsive and scaled to fit their container?
- Why most embed feature doesn’t work?
- Load oEmbed iframe within ajax call
- ‘[code]’ shortcode to markup programming code does not work
- oembed facebook link?
- My WordPress editor deletes all characters after emoji – how can I fix this?
- Do_Shortcode not working for Embed any tweet
- Increase size of Google Document Site Wide [closed]
- Displaying cf post formats with oembed
- How to have embedded images from smugmug take full width of blog posts
- WordPress: embedding last posted video
- Enclosures being deleted “automatically”
- What purpose does /embed/ URL have and how to avoid SEO problems?
- Embed links work on new page creation, not on edit
- Not allowing my site to be embedded elsewhere via oEmbed