Created
August 20, 2013 14:09
-
-
Save sareiodata/6281963 to your computer and use it in GitHub Desktop.
update profile builder extra fields dynamically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pb_options = get_option('wppb_custom_fields'); | |
if (is_array($pb_options)){ | |
foreach ($pb_options as $key => $single_option){ | |
if ( $single_option['item_metaName'] == 'custom_field_1' ) | |
$pb_options[$key]['item_options'] = 'Unu,Doi,Trei'; | |
} | |
} | |
update_option('wppb_custom_fields', $pb_options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment