-
Home
-
Havenlytics – Real Estate Plugin with Advanced Search, Maps & Property Builder
- Tips
How to Hide Havenlytics – Real Estate Plugin with Advanced Search, Maps & Property Builder Admin Menus
function plt_hide_havenlytics_menus() {
//Hide "Havenlytics".
remove_menu_page('edit.php?post_type=hvnly_property');
//Hide "Havenlytics → Properties".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit.php?post_type=hvnly_property');
//Hide "Havenlytics → Add New Property".
remove_submenu_page('edit.php?post_type=hvnly_property', 'post-new.php?post_type=hvnly_property');
//Hide "Havenlytics → Departments".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_depts&post_type=hvnly_property');
//Hide "Havenlytics → Types".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_types&post_type=hvnly_property');
//Hide "Havenlytics → Features".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_features&post_type=hvnly_property');
//Hide "Havenlytics → Locations".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_locations&post_type=hvnly_property');
//Hide "Havenlytics → Status".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_status&post_type=hvnly_property');
//Hide "Havenlytics → Badges".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_badges&post_type=hvnly_property');
//Hide "Havenlytics → Tags".
remove_submenu_page('edit.php?post_type=hvnly_property', 'edit-tags.php?taxonomy=hvnly_prop_tags&post_type=hvnly_property');
//Hide "Havenlytics → Settings".
remove_submenu_page('edit.php?post_type=hvnly_property', 'hvnly_property_settings');
//Hide "Havenlytics → Property Builder".
remove_submenu_page('edit.php?post_type=hvnly_property', 'hvnly_property_builder');
//Hide "Havenlytics → Setup Wizard".
remove_submenu_page('edit.php?post_type=hvnly_property', 'hvnly-property-import');
//Hide "Havenlytics → Inquiries".
remove_submenu_page('edit.php?post_type=hvnly_property', 'hvnly_inquiries');
//Hide "Agents".
remove_menu_page('edit.php?post_type=hvnly_agent');
//Hide "Agents → All Agents".
remove_submenu_page('edit.php?post_type=hvnly_agent', 'edit.php?post_type=hvnly_agent');
//Hide "Agents → Add New Agent".
remove_submenu_page('edit.php?post_type=hvnly_agent', 'post-new.php?post_type=hvnly_agent');
//Hide "Agents → Agencies".
remove_submenu_page('edit.php?post_type=hvnly_agent', 'edit-tags.php?taxonomy=hvnly_agent_agency&post_type=hvnly_agent');
}
add_action('admin_menu', 'plt_hide_havenlytics_menus', 100);
Where do I put this code?
How to Hide Havenlytics – Real Estate Plugin with Advanced Search, Maps & Property Builder Meta Boxes
function plt_hide_havenlytics_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Professional Details" meta box.
remove_meta_box('hvnly-agent-professional', $screen->id, 'normal');
//Hide the "Contact Information" meta box.
remove_meta_box('hvnly-agent-contact', $screen->id, 'normal');
//Hide the "Social Profiles" meta box.
remove_meta_box('hvnly-agent-social', $screen->id, 'normal');
//Hide the "Availability Status" meta box.
remove_meta_box('hvnly-agent-availability', $screen->id, 'side');
//Hide the "Profile Photo" meta box.
remove_meta_box('hvnly-agent-photo-help', $screen->id, 'side');
//Hide the "WordPress Account" meta box.
remove_meta_box('hvnly-agent-account', $screen->id, 'side');
//Hide the "Assigned Agents" meta box.
remove_meta_box('hvnly-property-assigned-agents', $screen->id, 'side');
//Hide the "Featured Property" meta box.
remove_meta_box('hvnly_featured_property_metabox', $screen->id, 'side');
//Hide the "Havenlytics Property Sections" meta box.
remove_meta_box('hvnly_dynamic_metabox_tabs__main__wrapper', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_havenlytics_metaboxes', 20);