-
Home
-
Listdom – Business Directory and Classified Ads Listings WordPress Plugin
- Tips
How to Hide Listdom Admin Menus
function plt_hide_listdom_menus() {
//Hide "Listdom".
remove_menu_page('listdom');
//Hide "Listdom → Home".
remove_submenu_page('listdom', 'listdom');
//Hide "Listdom → Shortcodes".
remove_submenu_page('listdom', 'edit.php?post_type=listdom-shortcode');
//Hide "Listdom → Search and Filter Builder".
remove_submenu_page('listdom', 'edit.php?post_type=listdom-search');
//Hide "Listdom → Notifications".
remove_submenu_page('listdom', 'edit.php?post_type=listdom-notification');
//Hide "Listdom → Settings".
remove_submenu_page('listdom', 'listdom-settings');
//Hide "Listdom → Import / Export".
remove_submenu_page('listdom', 'listdom-ix');
//Hide "Listdom → Wizard".
remove_submenu_page('listdom', 'listdom-welcome');
//Hide "Listdom → Addons".
remove_submenu_page('listdom', 'listdom-addons');
//Hide "Listdom → Documentation".
remove_submenu_page('listdom', 'https://webilia.com/docs/doc-category/listdom?utm_source=Listdom+dashboard&utm_medium=text&utm_campaign=Listdom+dashboard');
//Hide "Listdom → Support".
remove_submenu_page('listdom', 'https://webilia.com/support/?utm_source=Listdom+dashboard&utm_medium=text&utm_campaign=Listdom+dashboard');
//Hide "Listings".
remove_menu_page('edit.php?post_type=listdom-listing');
//Hide "Listings → All Listings".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit.php?post_type=listdom-listing');
//Hide "Listings → Add New Listing".
remove_submenu_page('edit.php?post_type=listdom-listing', 'post-new.php?post_type=listdom-listing');
//Hide "Listings → Categories".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit-tags.php?taxonomy=listdom-category&post_type=listdom-listing');
//Hide "Listings → Locations".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit-tags.php?taxonomy=listdom-location&post_type=listdom-listing');
//Hide "Listings → Tags".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit-tags.php?taxonomy=listdom-tag&post_type=listdom-listing');
//Hide "Listings → Features".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit-tags.php?taxonomy=listdom-feature&post_type=listdom-listing');
//Hide "Listings → Labels".
remove_submenu_page('edit.php?post_type=listdom-listing', 'edit-tags.php?taxonomy=listdom-label&post_type=listdom-listing');
}
add_action('admin_menu', 'plt_hide_listdom_menus', 11);
Where do I put this code?
How to Hide Listdom Meta Boxes
function plt_hide_listdom_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Category *" meta box.
remove_meta_box('lsd_metabox_category', $screen->id, 'side');
//Hide the "Location" meta box.
remove_meta_box('lsd_metabox_address', $screen->id, 'normal');
//Hide the "Details" meta box.
remove_meta_box('lsd_metabox_details', $screen->id, 'normal');
//Hide the "Shortcode" meta box.
remove_meta_box('lsd_metabox_shortcode', $screen->id, 'side');
//Hide the "Search" meta box.
remove_meta_box('lsd_metabox_search', $screen->id, 'side');
//Hide the "Default Sort" meta box.
remove_meta_box('lsd_metabox_default_sort', $screen->id, 'side');
//Hide the "Sort Options" meta box.
remove_meta_box('lsd_metabox_sort_options', $screen->id, 'side');
//Hide the "Map Controls" meta box.
remove_meta_box('lsd_metabox_map_controls', $screen->id, 'side');
//Hide the "Display Options" meta box.
remove_meta_box('lsd_metabox_display_options', $screen->id, 'normal');
//Hide the "Filter Options" meta box.
remove_meta_box('lsd_metabox_filter_options', $screen->id, 'normal');
//Hide the "Placeholders" meta box.
remove_meta_box('lsd_metabox_placeholders', $screen->id, 'side');
//Hide the "Recipients" meta box.
remove_meta_box('lsd_metabox_recipients', $screen->id, 'side');
//Hide the "Content" meta box.
remove_meta_box('lsd_metabox_content', $screen->id, 'normal');
//Hide the "Form" meta box.
remove_meta_box('lsd_metabox_form', $screen->id, 'side');
//Hide the "More Options" meta box.
remove_meta_box('lsd_metabox_more_options', $screen->id, 'side');
//Hide the "Search Results" meta box.
remove_meta_box('lsd_metabox_results', $screen->id, 'side');
//Hide the "Fields" meta box.
remove_meta_box('lsd_metabox_fields', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_listdom_metaboxes', 20);