This functions adds a shortcode which allows you to display meta fields that a specific/the current user has.
Parameters:
- user_id – id of the user which you want to retrieve the meta from. Leave empty if it should be equal to the current user.
- key – meta key of the field that you want to retrieve
- wpautop = “on” – this is used for textarea or wysiwyg fields
- size = “100” – this is used for the avatar field to specify the size of it
Shortcode:
[user_meta key=”avatar”]
You can add this shortcode to your website from Advanced Settings.
Array
Profile Builder Pro
Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.
Unlock PRO Features