edit and save custom profile fields with swapped values
-
I need to do a Between search on a Height profile field.
But the admin profile field setup doesn’t allow for a difference between option value and displayed option.So you get:
`under 5′ – 152cm`What I need is:
`under 5′ – 152cm`I can generate what I need by adding, to bp-custom :
`add_filter( ‘bp_get_the_profile_field_options_select’, ‘profile_field_options_select_swap’, 10, 1 );`
and using str_ireplace to swap the values.But if the user edits their profile on the Height selector, they get the error – “There was a problem updating some of your profile information, please try again.”
Any hints on cause and fix for this error ?
- The topic ‘edit and save custom profile fields with swapped values’ is closed to new replies.