Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Pulling from existing custom fields

@henrywright

Moderator

Hi @compixonline

get_user_meta() will allow you to retrieve the custom field data. You’d use the function like this:

$data = get_user_meta( $user_id, $key, true ); where $key is the name of the custom field and $user_id is the user ID of your BuddyPress member.

$data will then hold the custom field value you want for that particular member.

Ref: https://codex.wordpress.org/Function_Reference/get_user_meta

Skip to toolbar