-
Home
-
LinkCentral – Easy URL shortener, Custom Link Redirection & Affiliate Links Management with Tracking
- Tips
How to Hide LinkCentral Admin Menus
function plt_hide_linkcentral_menus() {
//Hide "LinkCentral".
remove_menu_page('linkcentral');
//Hide "LinkCentral → All Links".
remove_submenu_page('linkcentral', 'linkcentral');
//Hide "LinkCentral → Add New Link".
remove_submenu_page('linkcentral', 'post-new.php?post_type=linkcentral_link');
//Hide "LinkCentral → Link Categories".
remove_submenu_page('linkcentral', 'edit-tags.php?taxonomy=linkcentral_category&post_type=linkcentral_link');
//Hide "LinkCentral → Insights".
remove_submenu_page('linkcentral', 'linkcentral-insights');
//Hide "LinkCentral → Settings".
remove_submenu_page('linkcentral', 'linkcentral-settings');
}
add_action('admin_menu', 'plt_hide_linkcentral_menus', 11);
Where do I put this code?
How to Hide LinkCentral Meta Boxes
function plt_hide_linkcentral_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Link Details" meta box.
remove_meta_box('linkcentral_link_details', $screen->id, 'normal');
//Hide the "Tools" meta box.
remove_meta_box('linkcentral_link_tools', $screen->id, 'normal');
//Hide the "How to Use This Link" meta box.
remove_meta_box('linkcentral_how_to_use', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_linkcentral_metaboxes', 20);