How to Hide Advanced Custom Fields Admin Menus

function plt_hide_advanced_custom_fields_menus() {
	//Hide "Custom Fields".
	remove_menu_page('edit.php?post_type=acf-field-group');
	//Hide "Custom Fields → Field Groups".
	remove_submenu_page('edit.php?post_type=acf-field-group', 'edit.php?post_type=acf-field-group');
	//Hide "Custom Fields → Add New".
	remove_submenu_page('edit.php?post_type=acf-field-group', 'post-new.php?post_type=acf-field-group');
	//Hide "Custom Fields → Tools".
	remove_submenu_page('edit.php?post_type=acf-field-group', 'acf-tools');
}

add_action('admin_menu', 'plt_hide_advanced_custom_fields_menus', 21);

Where do I put this code?