WP Assist
  1. Home
  2. WP Hacks

[How To] Disable Loading ‘wp-embed.min.js’

WPAssist // (Updated: )

You can use the following code snippet to prevent wp-embed.min.js;

function wpassist_dequeue_scripts(){
    wp_deregister_script('wp-embed');
} 
add_action( 'wp_enqueue_scripts', 'wpassist_dequeue_scripts' );

Leave a Reply

Your email address will not be published. Required fields are marked *

Share Share Tweet