How to Hide Docket Cache Admin Menus

function plt_hide_docket_cache_menus() {
	//Hide "Docket Cache".
	remove_menu_page('docket-cache');
	//Hide "Docket Cache → Overview".
	remove_submenu_page('docket-cache', 'docket-cache');
	//Hide "Docket Cache → Cronbot".
	remove_submenu_page('docket-cache', 'docket-cache-cronbot');
	//Hide "Docket Cache → Configuration".
	remove_submenu_page('docket-cache', 'docket-cache-config');
}

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

Where do I put this code?