Update XProfile FIeld
I have a requirement to update an XProfile field outside of the loop when a user logs in.
Based on the code I have found that the following ‘should’ work.
bp_xprofile_update_meta( 1, ‘data’, ‘Location’, ‘thedatatobeupdated’ );
However this does not work. 1 being the userid, data being the type to update, Location being the field name, and thedatatobeupdated being hat I want to update the value to. Am I missing something?
You must be logged in to reply to this topic.