• Hey,
    I really need to disable the automatic embedding of links to videos, tweets etc. It is important that I deactivate it and not just format the link it manually.

    But no plugin or PHP code that I tried worked? I also looked through my plugins to see if any of them could interfere with it, but I didn’t find any.

    How can I disable automatic embedding of ANY external content on my website when a link is posted?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    To disable the oEmbed functionality, hook the ‘pre_oembed_result’ filter and return the passed URL unchanged. The URL is the second passed parameter.

    Lucas

    (@lucasmertenz)

    Hey Wasup?

    Have you tried this post -> https://kinsta.com/knowledgebase/disable-embeds-wordpress/
    They explain how to disable the wp_Embed with or without plugin.

    I hope it works.

    Thread Starter flizzywp

    (@flizzywp)

    Yes, I’ve tried this exact tutorial multiple times. I’ve also tried any other snippet and plugin on the first few pages of Google for various search queries. Nothing worked. However, the problem indirectly resolved for me because right now I don’t need it disabled anymore.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t disable auto embeds’ is closed to new replies.