Hook after user

This topic contains 5 replies, has 3 voices, and was last updated by  Alfonso Sánchez Gómez 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #6132

    Alfonso Sánchez Gómez
    Free User
    Post count: 67

    Good afternon, I have 2 in my site 2 registration forms.
    Using jQuery I set a hidden variable in each to perform different operations depending on which form was sent.
    I’m using the hook “after_user” to assign one role or another to the registered user.
    In the _uwp_usermeta table the value is stored perfectly (see attached image) but it must be done later because when I capture with the hook the user the value is not yet stored in the database.
    I would like to know if there is any hook of userswp to be able to do these operations when the whole process of registration of a user is finished.

    #6137

    Alex Rollin
    Moderator
    Post count: 27815

    Thabks for writing in about that. The developers will take a look at your question when they get back in the office.

    #6148

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Can you tell me the exact hook you are using or provide code? We can help to provide a hint but as per our policy, we don’t provide support for customization. You have to hire a developer for that.

    Regards,
    Patrik

    #6184

    Alfonso Sánchez Gómez
    Free User
    Post count: 67

    I don’t want customization, I’m taking care of that. I just want to know if you have a list of your own hooks where you can insert my own code.

    #6198

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The following are the hooks you can use while processing registration form:

    ‘uwp_before_validate’ => Triggers before fields validation
    ‘uwp_validate_result’ => Filter for additional validations
    ‘uwp_after_validate’ => Triggers after validation
    ‘uwp_before_extra_fields_save’ => Filter for modifying custom fields before save
    ‘uwp_after_extra_fields_save’ => Filter for modifying custom fields after save
    ‘uwp_after_custom_fields_save’ => Triggers after custom fields saved
    ‘uwp_after_process_register’ => Triggers after registration is complete which you can use.

    Regards,
    Patrik

    #6249

    Alfonso Sánchez Gómez
    Free User
    Post count: 67

    Thanks, I used “uwp_after_process_register” and it works as I wanted.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket