How to Hide File Manager Advanced Admin Menus

function plt_hide_file_manager_advanced_menus() {
	//Hide "File Manager".
	remove_menu_page('file_manager_advanced_ui');
	//Hide "File Manager → File Manager".
	remove_submenu_page('file_manager_advanced_ui', 'file_manager_advanced_ui');
	//Hide "File Manager → Settings".
	remove_submenu_page('file_manager_advanced_ui', 'file_manager_advanced_controls');
	//Hide "File Manager → Shortcodes".
	remove_submenu_page('file_manager_advanced_ui', 'file_manager_advanced_shortcodes');
}

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

Where do I put this code?