How to hide fields for verified users

HI,

I’m seeking advice regarding identity verification for sellers. I have two specific questions:

  1. Detecting ID Upload Uploads

I’ve added an attribute for an ID field to the seller’s page.

I’d like to implement a feature that sends an email notification to the admin address whenever an ID is uploaded.

Do you have any useful code snippets for this functionality?

  1. Hiding Fields for Verified Users

Admins are expected to manually mark vendors as verified based on uploaded IDs.
reference

After verification, I plan to hide the ID upload field for verified users in the seller’s edit page.

Could you provide advice or examples for implementing this?

I’d appreciate any guidance or examples to help with these implementations.

  1. Role-Based Settings and First-Time Approval for Listings

Is there a setting (or snippet) in Settings > Listings that allows certain user roles (e.g., approved users) to be exempt from the approval requirement?

It would be great if we could verify identity documents only for the first listing.

We’d prefer to avoid reviewing all listings from all users.

Hi,

  1. You can get this data using this hook hivepress/v1/models/listing/update_attachmentfieldnamehere , when you upload a file, you will see the attachment ID.

  2. You can use a filter on this hook hivepress/v1/forms/user_update and check if the user is such-and-such, then make the field hidden, using display_type or unset(...)

  3. You can use the option_hp_listing_enable_moderation hook to filter on the option value of the type, and check the user there and set the value to false accordingly.

​I hope this is helpful to you.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.