Add multiple custom tabs on Account page
-
I’ve used the following custom code that was provided to add a custom tab on the Account page:
https://gist.github.com/ultimatemember/f7eab149cb33df735b08
This was very helpful, thank you. However, How can I add multiple custom tabs within the same function? For example, I am able to display two custom tabs doing the following:
function my_custom_tab_in_um( $tabs ) { $tabs[100]['tab1']['icon'] = 'um-faicon-key'; $tabs[100]['tab1']['title'] = 'Custom Tab #1'; $tabs[100]['tab1']['custom'] = true; $tabs[200]['tab2']['icon'] = 'um-faicon-flag'; $tabs[200]['tab2']['title'] = 'Custom Tab #2'; $tabs[200]['tab2']['custom'] = true; return $tabs; }
How can I properly display the custom content on the second tab in the
um_account_tab__mytab
andum_account_content_hook_mytab
function?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Add multiple custom tabs on Account page’ is closed to new replies.