How to Hide the "Consent log" Admin Menu

function plt_hide_terms_conditions_consent_log_menus() {
	//Hide the "Users → Consent log" menu.
	remove_submenu_page('users.php', 'tccl-consents');
}

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

Where do I put this code?