Tips on Customizing Passster – Password Protect Pages and Content

How to Hide Passster Admin Menus

function plt_hide_content_protector_menus() {
	//Hide "Passster".
	remove_menu_page('passster');
	//Hide "Passster → Protected Areas".
	remove_submenu_page('passster', 'edit.php?post_type=protected_areas');
	//Hide "Passster → Password Lists".
	remove_submenu_page('passster', 'passster-password-lists');
	//Hide "Passster → Statistics".
	remove_submenu_page('passster', 'passster-statistics');
	//Hide "Passster → Settings".
	remove_submenu_page('passster', 'passster-settings');
}

add_action('admin_menu', 'plt_hide_content_protector_menus', 1000000000);

Where do I put this code?

How to Hide the "Passster" Meta Box

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

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

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