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.

Reading custom field value of specific userID

Home Forums Community Forum Reading custom field value of specific userID

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

Topic Author Topic
Posted: Monday Jun 3rd, 2013 at 9:11 am #51214

i need to get value of s2 member custom field of specific id user through php.

so far i got this for current user :

$fields = json_decode(S2MEMBER_CURRENT_USER_FIELDS, true);
$this=$fields['field_name'];

how do i access custom field of specific user ID ?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Jun 4th, 2013 at 5:21 am #51300
Bruce
Username: Bruce
Staff Member

how do i access custom field of specific user ID ?

You’d use s2Member’s get_user_field() function.

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

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.