media-template.phpのいらないの消せた

function custom_print_media_templates() {
remove_action( ‘admin_footer’, ‘wp_print_media_templates’ );
remove_action( ‘wp_footer’, ‘wp_print_media_templates’ );
remove_action( ‘customize_controls_print_footer_scripts’, ‘wp_print_media_templates’ );
}
add_action( ‘wp_enqueue_media’, ‘custom_print_media_templates’ );