- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Query Custom Field
Tagged: custom field
Is it possible to query a custom field on the backend?
For instance we created a franchise ID # field that the user must complete when they register. In a WordPress template file, we want to have something like:
If User has this Franchise ID#
Then Output this
Else
Output this
Yes, The following should help:
Here is a sample PHP code:
$member_id = "2";
$field = "Franchise_ID";
$field_value = wp_emember_get_user_details_by_id($field, $member_id);