Tips on Customizing Complianz – GDPR/CCPA Cookie Consent

How to Hide Complianz | GDPR/CCPA Cookie Consent Admin Menus

function plt_hide_complianz_gdpr_menus() {
	//Hide "Complianz".
	remove_menu_page('complianz');
	//Hide "Complianz → Dashboard".
	remove_submenu_page('complianz', 'complianz');
	//Hide "Complianz → Wizard".
	remove_submenu_page('complianz', 'cmplz-wizard');
	//Hide "Complianz → Cookie banner".
	remove_submenu_page('complianz', 'cmplz-cookiebanner');
	//Hide "Complianz → Integrations".
	remove_submenu_page('complianz', 'cmplz-script-center');
	//Hide "Complianz → Settings".
	remove_submenu_page('complianz', 'cmplz-settings');
	//Hide "Complianz → Data requests".
	remove_submenu_page('complianz', 'cmplz-datarequests');
	//Hide "Complianz → Proof of consent".
	remove_submenu_page('complianz', 'cmplz-proof-of-consent');
	//Hide "Complianz → Upgrade to premium".
	remove_submenu_page('complianz', 'https://complianz.io/l/pricing');
}

add_action('admin_menu', 'plt_hide_complianz_gdpr_menus', 21);

Where do I put this code?

How to Hide the "Cookiebanner" Meta Box

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

	//Hide the "Cookiebanner" meta box.
	remove_meta_box('cmplz_hide_banner_meta_box', $screen->id, 'side');
}

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