- This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Call to undefined method SwpmMemberUtils::get_member_field_by_id
Tagged: get_member_field_by_id
I attempted to use the function get_member_field_by_id described here but it just returns an error:
Call to undefined method SwpmMemberUtils::get_member_field_by_id
Having searched the plugin code, I can’t see any reference to get_member_field_by_id – is this a premium function or perhaps a deprecated function?
Thanks,
Jon
Hi Jon, where did you add the function?
Hi there,
Thanks for replying.
I tried it in header.php and also in a page template.
Jon
The code needs to be added to a Theme template. This template must be used by your post or page for the php code to work.