Adding Automated Profile Verification Email

I’m currently working on setting up an automated email for when a user’s profile is verified in HivePress. While HivePress allows customization of transactional emails, there doesn’t appear to be a native option for “Profile Verification” in the available email triggers.

Here’s what I’m trying to achieve:

  • Automatically send an email to users when their profile is marked as “verified.”
  • I’ve explored the documentation and used the hooks provided, but I couldn’t find an existing event that corresponds to profile verification.

Would you be able to provide any guidance on:

  1. What hook or function in HivePress should be used to trigger an action when a profile is verified?
  2. If there’s no built-in event for this, how would you recommend creating a custom event or leveraging the existing user meta (e.g., is_verified) to trigger the email?

Any insights or advice you can provide would be greatly appreciated. Thank you in advance for your help!

Hi,

We recommend using hook: hivepress/v1/models/user/update_verified or hivepress/v1/models/user/update and check $user->is_verified() inside, but note that then you won’t be able to check that the status has changed, you will have to keep a note for the user that such an email has already been sent.

So what if the package get’s expired or the time is over if it’s a 30 days lisiting. those this send a email telling the user that the listing package has expired?

Hi,

Vendors can renew their listings by purchasing a new package or using the limit of the current package.