I'm using the plugin "Extra User Fields" to add extra fields to the user's profile. I know how to get the value of the field (get_user_meta/get_author_meta), but I also want the label as a string, but I don't want to get the full code (like <label>Label</label><input value="value" />
etc., because I want to be able to do with the label and the value what I please.
So, what function (or tag) should I use to get the label value of an user field?
do_action( 'edit_user_profile', $profileuser );
gives me all the user profile fields (labels, input and help wrapped in html elements, ready for output to the browser), but I just want the label value on it's own. I can get the input value withget_the_author_meta('field_id')
, but I have no idea how to get just the label value that goes with that input value..