-
Home
-
Simple URLs – Link Cloaking, Product Displays, and Affiliate Link Management
- Tips
How to Hide Lasso Lite Admin Menus
function plt_hide_simple_urls_menus() {
//Hide "Lasso Lite".
remove_menu_page('edit.php?post_type=surl');
//Hide "Lasso Lite → Dashboard".
remove_submenu_page('edit.php?post_type=surl', 'edit.php?post_type=surl');
//Hide "Lasso Lite → Import".
remove_submenu_page('edit.php?post_type=surl', 'surl-import');
//Hide "Lasso Lite → Settings".
remove_submenu_page('edit.php?post_type=surl', 'surl-settings-display');
//Hide "Lasso Lite → Support".
remove_submenu_page('edit.php?post_type=surl', 'https://support.getlasso.co/');
//Hide "Lasso Lite → Affiliate+".
remove_submenu_page('edit.php?post_type=surl', 'https://app.getlasso.co/plus/');
//Hide "Lasso Lite → Upgrade to Pro".
remove_submenu_page('edit.php?post_type=surl', 'https://getlasso.co/upgrade/');
}
add_action('admin_menu', 'plt_hide_simple_urls_menus', 11);
Where do I put this code?
How to Hide the "URL Information" Meta Box
function plt_hide_simple_urls_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "URL Information" meta box.
remove_meta_box('surl', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_simple_urls_metaboxes', 20);