Tips on Customizing EnvyPopup – All-in-One Popup Management WordPress Plugin

How to Hide EnvyPopup Admin Menus

function plt_hide_envypopup_menus() {
	//Hide "EnvyPopup".
	remove_menu_page('edit.php?post_type=envypopup');
	//Hide "EnvyPopup → All Messages".
	remove_submenu_page('edit.php?post_type=envypopup', 'edit.php?post_type=envypopup');
	//Hide "EnvyPopup → Add New Message".
	remove_submenu_page('edit.php?post_type=envypopup', 'post-new.php?post_type=envypopup');
	//Hide "EnvyPopup → Settings".
	remove_submenu_page('edit.php?post_type=envypopup', 'envy_popup_options');
}

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

Where do I put this code?

How to Hide EnvyPopup Meta Boxes

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

	//Hide the "Close Button" meta box.
	remove_meta_box('add_meta_box_close_btn', $screen->id, 'normal');
	//Hide the "Close Button Text" meta box.
	remove_meta_box('add_meta_box_close_btn_text', $screen->id, 'normal');
	//Hide the "Select Close Button Size" meta box.
	remove_meta_box('add_meta_box_close_btn_size', $screen->id, 'normal');
	//Hide the "Custom Button" meta box.
	remove_meta_box('add_meta_box_custom_btn', $screen->id, 'normal');
	//Hide the "Custom Button Text" meta box.
	remove_meta_box('add_meta_box_custom_btn_text', $screen->id, 'normal');
	//Hide the "Custom Button URL" meta box.
	remove_meta_box('add_meta_box_custom_btn_url', $screen->id, 'normal');
	//Hide the "Select Custom Button Size" meta box.
	remove_meta_box('add_meta_box_custom_btn_size', $screen->id, 'normal');
}

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