Last active
February 18, 2017 11:08
Star
You must be signed in to star a gist
WordPress: Disable embed script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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