Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile Field selectbox bulk import?


WPChina
Participant

@wordpresschina

Ok, I did this the “difficult way” by directly adding into the database. I wish there was a much easier way to handle this :(

Here is the code I used — you need to tweak it for your won requirenents based on how your setup exists:

Code:
INSERT INTO `wp_bp_xprofile_fields` (`id`, `group_id`, `parent_id`, `type`, `name`, `description`, `is_required`, `is_default_option`, `field_order`, `option_order`, `order_by`, `can_delete`) VALUES
(number1, 6, 66, ‘option’, ‘CHOICE1’, ”, 0, 0, 0, 2, ”, 1),
(number2, 6, 66, ‘option’, ‘CHOICE2’, ”, 0, 0, 0, 3, ”, 1);
Skip to toolbar