Disable embeds (and save HTTP requests)

Disable embeds (and save HTTP requests)

In the functions.php file add this:
function disable_embeds_code_init() {
	remove_filter('the_content', [$GLOBALS, 'wp_embed'], 'autoembed'], 8);
} 
add_action('init', 'disable_embeds_code_init', 9999);

Bye embeds. Fewer scripts = faster site = happy users. 🏃💨