Skip to content

Instantly share code, notes, and snippets.

@nielslange
Last active February 18, 2017 11:08
  • 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 nielslange/5ec471ccfa0443a3318fca5dc64d45e4 to your computer and use it in GitHub Desktop.
WordPress: Disable embed script
<?php
//* Disable embed script
add_action('init', 'nl_disable_wp_embed');
function nl_disable_wp_embed() {
if (!is_admin()) {
wp_deregister_script('wp-embed');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment