• Resolved kbarba

    (@kbarzallo)


    Hi, I would like to ask the name of the hook that is launched when the admin edits a user’s profile. I found this one: ‘wppb_edit_profile_success’, but I don’t know if it is this one, because the description of this one refers when the user himself edits his profile.

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @kbarzallo,

    The same hook runs in that case. You can differentiate between a normal user and an admin by checking a capability with current_user_can() or you can look at the URL, when the admin is editing another user, there will be a $_GET parameter called edit_user in it.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Hook when admin edit user profile’ is closed to new replies.