Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Does this plugin disable embeds from the site it is installed on?

    Yes. It prevents you from embedding your own site. This means the plugin should work perfectly for your use case. Make sure to use the latest version.

    Note: wp_oembed_remove_provider() won’t work as embeds from WordPress are treated differently.

    Thread Starter benklocek

    (@benklocek)

    Thanks Pascal! Unfortunately, it doesn’t appear to be working: https://backpackinglight.com/forums/topic/myog-2p-4-season-semi-geodesic-tent/#post-3413945

    I’ve edited and resaved the offending post, but it’s still showing the embeds.

    Using Disable Embeds Version 1.3.0, WP Version 4.5.3

    Plugin Author Pascal Birchler

    (@swissspidy)

    Thanks for the link though, that’s super helpful for testing!

    It seems like these two embeds were already there before activating Disable Embeds. WordPress caches the content of these embeds in the database, that’s why you still see it.

    To fix this, you might want to give the oEmbed Cache plugin a try to delete these cached embeds. Alternatively, you could do this directly in the database using something like this:

    DELETE FROM wp_postmeta WHERE meta_key LIKE '%_oembed_%'

    Or, even better, only for the post in question:

    DELETE FROM wp_postmeta WHERE meta_key LIKE '%_oembed_%' AND post_id = 3413945

    Note that I haven’t tested these SQL statements right now, but they would definitely fix the problem. Use the plugin to be on the safer side.

    Also note that I might add something like this to Disable Embeds and that there are plans to improve this in WordPress itself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable embeds on same site’ is closed to new replies.