Tips on Customizing iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more

How to Hide the "iubenda" Admin Menu

function plt_hide_iubenda_cookie_law_solution_menus() {
	//Hide the "iubenda" menu.
	remove_menu_page('iubenda');
}

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

Where do I put this code?

How to Hide the "iubenda Compliance Status" Dashboard Widget

function plt_hide_iubenda_cookie_law_solution_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "iubenda Compliance Status" widget.
	remove_meta_box('iubenda-compliance-status', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_iubenda_cookie_law_solution_dashboard_widgets', 20);