How do I add my extra tabs to user profiles?

Ultimate Member profiles can be extended using custom code. Implementation of custom profile tabs requires someone with coding knowledge. We have created a code example that you can view here which will help you to create your custom profile tab.

NOTE: We are not able to provide any support when it comes to customizing the plugin. We have provided this code example to provide guidance only.

Ultimate Member has settings that can be used to show/hide and configure privacy settings for each tab in the Profile menu. You can see these settings on wp-admin > Ultimate Member > Settings > Appearance > Profile Menu.

Code examples below are based on two hooks:

  • um_profile_tabs - this hook is used to modify and extend the profile menu.
  • um_profile_content_{$tab_id} - this hook is used to display content for the desired tab, where {$tab_id} is the tab key in the $tabs array.

Example - How to add extra tab with a form

In this example variable $fields_metakey is an array that contains fields "Meta Key" values. You can find existed fields "Meta Key" or create a new field in the profile Form Builder on wp-admin > Ultimate Member > Forms > Edit Form.


Example - How to add multiple extra tabs

This example shows how to add several tabs with custom shortcodes into the Profile menu.

NOTE: Each tab must have a unique key. You have to replace the key in the array and in the hook and function name.