Hi,
I’m rebuilding a HivePress-based classifieds site after a database issue and I lost all the custom attributes (stored in wp_hivepress_attribute, wp_hivepress_attribute_field, etc.).
I still have the full list of attributes, including:
- name
- slug
- field type (text, select, number, etc.)
- options (for select fields)
- categories they should be assigned to
Is there any official or recommended way to bulk import attributes from a CSV/Excel file, or to create them programmatically via PHP?
Even a simple code snippet to insert them would be helpful. I’m comfortable using a custom plugin or adding a function temporarily.
Thanks in advance for any advice!