Unset “Login as this User” and “Deactivate this account” menu items
-
Hello,
I want to unset menu items in the GEAR ICON of the profile and in the members directory list when the logged-in user is an Admin.
I want to unset those items :
– Deactivate this account
– Login as this userI could use this hook but I don’t know which name I should give to the menu item to unset it :
function remove_menu_cancel_button( $items = array() ) { if ( isset( $items['deactivate'] ) ) { unset( $items['deactivate'] ); } return $items; } add_filter( 'um_myprofile_edit_menu_items', 'remove_menu_cancel_button', 12, 1 );
Can you tell me what name to enter in this function to really unset those items ?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Unset “Login as this User” and “Deactivate this account” menu items’ is closed to new replies.