Tips on Customizing GDPR Cookie Consent – EU ICO Compliant

How to Hide GDPR Cookie Consent Admin Menus

function plt_hide_gdpr_cookie_consent_menus() {
	//Hide the "GDPR Cookie Consent" menu.
	remove_menu_page('gdpr-cookie-consent');
	//Hide the "GDPR Cookie Consent → Cookie Settings" menu.
	remove_submenu_page('gdpr-cookie-consent', 'gdpr-cookie-consent');
	//Hide the "GDPR Cookie Consent → Policy Data" menu.
	remove_submenu_page('gdpr-cookie-consent', 'edit.php?post_type=gdprpolicies');
}

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

Where do I put this code?

How to Hide GDPR Cookie Consent Meta Boxes

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

	//Hide the "Domain" meta box.
	remove_meta_box('_gdpr_policies_domain', $screen->id, 'normal');
	//Hide the "Links" meta box.
	remove_meta_box('_gdpr_policies_links', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_gdpr_cookie_consent_metaboxes', 20);