admin管理员组

文章数量:1384375

Is there a way on current wordpress versions (5.2..), to turn of the automatic embed links(wp-embed.min.js), that will turn an url into an iframe?

I have tried plugins, snippets, functions.php ... it seams that none of them work anymore for wp latest versions.

Is there a way on current wordpress versions (5.2..), to turn of the automatic embed links(wp-embed.min.js), that will turn an url into an iframe?

I have tried plugins, snippets, functions.php ... it seams that none of them work anymore for wp latest versions.

Share Improve this question asked Apr 24, 2020 at 8:37 Fernando SouzaFernando Souza 1512 silver badges11 bronze badges 1
  • are you using the Block Editor(Gutenberg) or WordPress default Editor? – 西門 正 Code Guy - JingCodeGuy Commented Apr 24, 2020 at 10:17
Add a comment  | 

1 Answer 1

Reset to default 0

Have you tried this?

function dequeue_embed_script() {
    wp_dequeue_script('wp-embed');
}

add_action( 'wp_enqueue_scripts', 'dequeue_embed_script', 9999 );

本文标签: Disable automatic embed links