-
Home
-
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress
- Tips
function plt_hide_wp_user_avatar_menus() {
//Hide "ProfilePress".
remove_menu_page('ppress-dashboard');
//Hide "ProfilePress → Dashboard".
remove_submenu_page('ppress-dashboard', 'ppress-dashboard');
//Hide "ProfilePress → Membership Plans".
remove_submenu_page('ppress-dashboard', 'ppress-plans');
//Hide "ProfilePress → Orders".
remove_submenu_page('ppress-dashboard', 'ppress-orders');
//Hide "ProfilePress → Subscriptions".
remove_submenu_page('ppress-dashboard', 'ppress-subscriptions');
//Hide "ProfilePress → Customers".
remove_submenu_page('ppress-dashboard', 'ppress-customers');
//Hide "ProfilePress → Content Protection".
remove_submenu_page('ppress-dashboard', 'ppress-content-protection');
//Hide "ProfilePress → Forms Profiles".
remove_submenu_page('ppress-dashboard', 'ppress-forms');
//Hide "ProfilePress → Member Directories".
remove_submenu_page('ppress-dashboard', 'ppress-directories');
//Hide "ProfilePress → Settings".
remove_submenu_page('ppress-dashboard', 'ppress-config');
//Hide "ProfilePress → User SyncNEW".
remove_submenu_page('ppress-dashboard', 'ppress-fusewp');
//Hide "ProfilePress → Popups Optins".
remove_submenu_page('ppress-dashboard', 'ppress-mailoptin');
//Hide "ProfilePress → Addons".
remove_submenu_page('ppress-dashboard', 'ppress-extensions');
}
add_action('admin_menu', 'plt_hide_wp_user_avatar_menus', 11);
Where do I put this code?