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

How to Hide the "WP Cookie Consent" Admin Menu

function plt_hide_gdpr_cookie_consent_menus() {
	//Hide the "WP Cookie Consent" menu.
	remove_menu_page('gdpr-cookie-consent');
}

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

Where do I put this code?

How to Hide WP 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);