How to Hide WP File Manager Admin Menus

function plt_hide_nmedia_user_file_uploader_menus() {
	//Hide "File Manager".
	remove_menu_page('edit.php?post_type=wpfm-files');
	//Hide "File Manager → All Files".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'edit.php?post_type=wpfm-files');
	//Hide "File Manager → Add New".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'post-new.php?post_type=wpfm-files');
	//Hide "File Manager → Settings".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'wpfm-settings');
}

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

Where do I put this code?