latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Edit individual custom profile field.

Home Forums Community Forum Edit individual custom profile field.

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 7 months ago.

Topic Author Topic
Posted: Monday May 27th, 2013 at 11:11 pm #50733

I use $x = do_shortcode(‘[s2Get user_field="Skill" /]‘) to get custom profile fields. I am wondering if there is an easy way to redefine $x and write it back to the same custom field inside some code. I want to store information in custom fields that the user will not see but that I can branch from depending on value, then re-write the value.

Thank you!
Rob

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday May 29th, 2013 at 7:49 am #50810
Bruce
Username: Bruce
Staff Member

I use $x = do_shortcode(‘‘) to get custom profile fields. I am wondering if there is an easy way to redefine $x and write it back to the same custom field inside some code. I want to store information in custom fields that the user will not see but that I can branch from depending on value, then re-write the value.

You can also use get_user_field().

See: http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()

If you need to change a Custom Registration/Profile Field value, you have to use the information provided here. These values are stored in an array in your wp_options table, so it’s a bit more complicated:

http://www.s2member.com/forums/topic/modify-user-field-to-streamline-signups/#post-38484

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.