Tips on Customizing Popup Builder – Responsive WordPress Pop up – Subscription & Newsletter

How to Hide Popup Builder Admin Menus

function plt_hide_popup_builder_menus() {
	//Hide "Popup Builder".
	remove_menu_page('edit.php?post_type=popupbuilder');
	//Hide "Popup Builder → All Popups".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'edit.php?post_type=popupbuilder');
	//Hide "Popup Builder → Categories".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'edit-tags.php?taxonomy=popup-categories&post_type=popupbuilder');
	//Hide "Popup Builder → Add New".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'popupbuilder');
	//Hide "Popup Builder → Subscribers".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'sgpbSubscribers');
	//Hide "Popup Builder → Newsletter".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'sgpbNewsletter');
	//Hide "Popup Builder → Settings".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'sgpbSettings');
	//Hide "Popup Builder → Extend".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'extend');
	//Hide "Popup Builder → Support".
	remove_submenu_page('edit.php?post_type=popupbuilder', 'sgpbSupport');
}

add_action('admin_menu', 'plt_hide_popup_builder_menus', 1000);

Where do I put this code?

How to Hide Popup Builder Meta Boxes

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

	//Hide the "Popup Display Rules" meta box.
	remove_meta_box('targetMetaboxView', $screen->id, 'normal');
	//Hide the "Popup Events" meta box.
	remove_meta_box('eventsMetaboxView', $screen->id, 'normal');
	//Hide the "Popup Conditions" meta box.
	remove_meta_box('conditionsMetaboxView', $screen->id, 'normal');
	//Hide the "Behavior After Special Events" meta box.
	remove_meta_box('behaviorAfterSpecialEventsMetaboxView', $screen->id, 'normal');
	//Hide the "Design" meta box.
	remove_meta_box('popupDesignMetaBoxView', $screen->id, 'normal');
	//Hide the "Close Settings" meta box.
	remove_meta_box('closeSettings', $screen->id, 'normal');
	//Hide the "Dimensions" meta box.
	remove_meta_box('spgdimension', $screen->id, 'normal');
	//Hide the "Popup Options" meta box.
	remove_meta_box('optionsMetaboxView', $screen->id, 'normal');
	//Hide the "Popup Additional ConditionsUNLOCK OPTION" meta box.
	remove_meta_box('otherConditionsMetaBoxView', $screen->id, 'normal');
}

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