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".
	//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 → Proof of consent".
	remove_submenu_page('complianz', 'cmplz-proof-of-consent');
	//Hide "Complianz → Upgrade to premium".
	remove_submenu_page('complianz', '');

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

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

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