Hi,
Here is the code you can put in functions.php file of the currently active theme:
add_filter('uwp_account_available_tabs', 'uwp_account_available_tabs_cb', 10, 1);
function uwp_account_available_tabs_cb($tabs){
$tabs['new-tab'] = array(
'title' => __( 'My new tab', 'userswp' ),
'icon' => 'fas fa-user',
);
return $tabs;
}
add_filter('uwp_account_page_title', 'uwp_account_page_title_cb', 10, 2);
function uwp_account_page_title_cb($title, $type){
if ( $type == 'new-tab' ) {
$title = __( 'My new tab title', 'uwp-messaging' );
}
return $title;
}
add_filter('uwp_account_form_display', 'uwp_account_form_display_cb', 10, 1);
function uwp_account_form_display_cb($type){
if ( $type == 'new-tab' ) {
echo 'Your custom content goes here...';
}
}
Let me know if it helps.
Regards,
Patrik