Snippets: How to Disable the WordPress Custom Audio/Video Media Players

function myprefix_disable_wp_media_elements_js(){
	wp_deregister_script( 'wp-mediaelement' );
	wp_deregister_style( 'wp-mediaelement' );
}
add_action('wp_enqueue_scripts','myprefix_disable_wp_media_elements_js', PHP_INT_MAX );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)