-
Home
-
User Registration & Membership – Custom Registration Form, Login Form, and User Profile
- Tips
How to Hide User Registration Admin Menus
function plt_hide_user_registration_menus() {
//Hide "User Registration".
remove_menu_page('user-registration');
//Hide "User Registration → Dashboard".
remove_submenu_page('user-registration', 'user-registration-dashboard');
//Hide "User Registration → All Forms".
remove_submenu_page('user-registration', 'user-registration');
//Hide "User Registration → Add New".
remove_submenu_page('user-registration', 'add-new-registration');
//Hide "User Registration → Settings".
remove_submenu_page('user-registration', 'user-registration-settings');
//Hide "User Registration → Tools".
remove_submenu_page('user-registration', 'user-registration-status');
//Hide "User Registration → Extensions".
remove_submenu_page('user-registration', 'user-registration-addons');
//Hide "User Registration → Upgrade to Pro".
remove_submenu_page('user-registration', 'https://wpuserregistration.com/pricing/?utm_source=ur-submenu&utm_medium=upgrade-link&utm_campaign=lite-version');
}
add_action('admin_menu', 'plt_hide_user_registration_menus', 81);
Where do I put this code?
How to Hide the "User Registration Activity" Dashboard Widget
function plt_hide_user_registration_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "User Registration Activity" widget.
remove_meta_box('user_registration_dashboard_status', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_user_registration_dashboard_widgets', 20);