Remove action “community_role_edit”
-
Hi,
As I don’t want that my custom role “Webmaster” can change the “user community role” during the process of editing a user, I’d like to remove the action “community_role_edit” that you call in “/core/um-user.php”. BTW I’ll can remove properly the list of role that you add at the bottom of “user-edit.php”.
So, I tried :function remove_action_from_UM() { if ( !current_user_can( 'manage_options' )) remove_action('edit_user_profile', 'community_role_edit'); } add_action('edit_user_profile', 'remove_action_from_UM', 9999);
But with no success :(.
Could you help me please?
TIA.
Amicably,
Pierre.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove action “community_role_edit”’ is closed to new replies.