Created
July 24, 2021 14:32
-
-
Save alexsoyes/cb2a8545a80dc9dff171fd78a81af95d to your computer and use it in GitHub Desktop.
Remove WP Embed
This file contains hidden or 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 | |
function my_deregister_scripts() | |
{ | |
wp_dequeue_script( 'wp-embed' ); | |
} | |
add_action( 'wp_footer', 'my_deregister_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment