Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created March 1, 2017 06:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Kaiderella/b1441f49aef5c7c34b7765c547ad2ec7 to your computer and use it in GitHub Desktop.
Vô hiệu hóa wp-embed.min.js
//* Remove WP Embed Script
function stop_loading_wp_embed() {
if (!is_admin()) {
wp_deregister_script('wp-embed');
}
}
add_action('init', 'stop_loading_wp_embed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment