I’ve created a role for flagged accounts. If I changed a vendor from contributor role to this flagged account role I created, then review and set back to Contributor role a double vendor profile is created. I’m trying to determine why this is happening in the way hivepress generates vendor profiles, so I can create a solution.
Vendor profiles are created automatically if the current user has listings but has no vendor profile. Maybe user’s listings are unassigned when changing the role, since Contributor role is the minimum role in WordPress to be selected as an author? Please try adding this custom role as an extra one instead of replacing Contributor.
Vendor profiles are created in this component https://github.com/hivepress/hivepress/blob/master/includes/components/class-vendor.php Please search by “save(”.
Hope this helps.
Thanks.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.