Tips on Customizing GDPR CCPA Compliance & Cookie Consent Banner

How to Hide GDPR CCPA Compliance & Cookie Consent Banner Admin Menus

function plt_hide_ninja_gdpr_compliance_menus() {
	//Hide "Ninja GDPR".
	remove_menu_page('njt-gdpr');
	//Hide "Ninja GDPR → Cookie Popup".
	remove_submenu_page('njt-gdpr', 'njt-gdpr');
	//Hide "Ninja GDPR → Privacy Policy".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/policy');
	//Hide "Ninja GDPR → Terms and Conditions".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/terms-and-conditions');
	//Hide "Ninja GDPR → Forget Me".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/forget-me');
	//Hide "Ninja GDPR → Data Access".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/data-access');
	//Hide "Ninja GDPR → Data Breach".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/data-breach');
	//Hide "Ninja GDPR → Data Rectification".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/data-rectification');
	//Hide "Ninja GDPR → Integrations".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/integrations');
	//Hide "Ninja GDPR → Privacy Settings Page".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/privacy-settings-page');
	//Hide "Ninja GDPR → EU Traffic".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/eu-traffic');
	//Hide "Ninja GDPR → Unsubscribe".
	remove_submenu_page('njt-gdpr', 'njt-gdpr#/unsubscribe');
}

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

Where do I put this code?

How to Hide the "Recommended" Dashboard Widget

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

	//Remove the "Recommended" widget.
	remove_meta_box('dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_ninja_gdpr_compliance_dashboard_widgets', 20);