-
Home
-
ThirstyAffiliates – Affiliate Links, Link Branding, Link Tracking & Marketing Plugin
- Tips
function plt_hide_thirstyaffiliates_menus() {
//Hide "ThirstyAffiliates".
remove_menu_page('edit.php?post_type=thirstylink');
//Hide "ThirstyAffiliates → Affiliate Links".
remove_submenu_page('edit.php?post_type=thirstylink', 'edit.php?post_type=thirstylink');
//Hide "ThirstyAffiliates → ThirstyPay™ LinksNEW".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirstypay-links');
//Hide "ThirstyAffiliates → Add Affiliate Link".
remove_submenu_page('edit.php?post_type=thirstylink', 'post-new.php?post_type=thirstylink');
//Hide "ThirstyAffiliates → Link Categories".
remove_submenu_page('edit.php?post_type=thirstylink', 'edit-tags.php?taxonomy=thirstylink-category&post_type=thirstylink');
//Hide "ThirstyAffiliates → Settings".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirsty-settings');
//Hide "ThirstyAffiliates → Import CSV".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirsty_import');
//Hide "ThirstyAffiliates → Export CSV".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirsty_export');
//Hide "ThirstyAffiliates → Amazon Import".
remove_submenu_page('edit.php?post_type=thirstylink', 'amazon_import');
//Hide "ThirstyAffiliates → Event Notifications".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirsty_event_notifications');
//Hide "ThirstyAffiliates → Add-ons".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirstyaffiliates-addons');
//Hide "ThirstyAffiliates → Reports".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirsty-reports');
//Hide "ThirstyAffiliates → Pro Features →".
remove_submenu_page('edit.php?post_type=thirstylink', 'https://thirstyaffiliates.com/pricing/?utm_source=Free%20Plugin&utm_medium=Pro&utm_campaign=Admin%20Menu');
//Hide "ThirstyAffiliates → Growth Tools".
remove_submenu_page('edit.php?post_type=thirstylink', 'thirstyaffiliates-growth-tools');
}
add_action('admin_menu', 'plt_hide_thirstyaffiliates_menus', 10000);
Where do I put this code?