Hi Tom,
Not sure exactly what you mean by meta fields. Do you mean something like data stored in Post Meta, or User Meta? Or something else? 🙂
Hi Paul, cheers for the quick response.
I’m assuming it’s user meta. Basically, I’m wanting to add the user achievements information to their profile page. I’ve downloaded a plugin that allows me to add custom fields (it’s a premium plugin) and it’s asking for meta fields, I can add custom ones. There are already a couple from your plugin in the list that it populates itself, these are:
closedpostboxes_achievement
metaboxhidden_achievement
Thanks,
Tom.
Just a quick update, it’s definitely user_meta that is required.
Thanks,
Tom.
As of v3.4.1:
// The total of how many achievements that this user has unlocked (int)
_dpa_unlocked_count
// The user’s points total (int)
_dpa_points
// User’s pending notifications (array)
_dpa_notifications
// The ID of the last achievement this user unlocked (int)
_dpa_last_unlocked
I strongly suggest you don’t show _dpa_notifications or _dpa_last_unlocked as those are internal. If you show the other two, make them read-only to avoid users’ cheating. 🙂
You, Sir, are a star! I’ll try those later and let you know how i get on.
Cheers,
Tom.