How to Hide WP File Manager Admin Menus

function plt_hide_wp_file_manager_menus() {
	//Hide "WP File Manager".
	remove_menu_page('wp_file_manager');
	//Hide "WP File Manager → WP File Manager".
	remove_submenu_page('wp_file_manager', 'wp_file_manager');
	//Hide "WP File Manager → Settings".
	remove_submenu_page('wp_file_manager', 'wp_file_manager_settings');
	//Hide "WP File Manager → Preferences".
	remove_submenu_page('wp_file_manager', 'wp_file_manager_root');
	//Hide "WP File Manager → System Properties".
	remove_submenu_page('wp_file_manager', 'wp_file_manager_properties');
	//Hide "WP File Manager → Shortcode - PRO".
	remove_submenu_page('wp_file_manager', 'wp_file_manager_shortcode_doc');
	//Hide "WP File Manager → Logs".
	remove_submenu_page('wp_file_manager', 'wpfm-logs');
	//Hide "WP File Manager → Backup / Restore".
	remove_submenu_page('wp_file_manager', 'wpfm-backup');
}

add_action('admin_menu', 'plt_hide_wp_file_manager_menus', 11);

Where do I put this code?