Tips on Customizing WP Cookie Notice for GDPR, CCPA & ePrivacy Consent

How to Hide GDPR Cookie Consent Admin Menus

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

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);