@peermentor
You can try this code snippet using the “Events Manager” shortcode [event_form]
function um_eventstab_add_tab( $tabs ) {
$tabs[ 'eventstab' ] = array(
'name' => 'Events Form',
'icon' => 'um-faicon-pencil',
'custom' => true
);
UM()->options()->options[ 'profile_tab_' . 'eventstab' ] = true;
return $tabs;
}
add_filter( 'um_profile_tabs', 'um_eventstab_add_tab', 1000 );
/**
* Render tab content
*
* @param array $args
*/
function um_profile_content_eventstab_default( $args ) {
echo do_shortcode( "[event_form]");
}
add_action( 'um_profile_content_eventstab_default', 'um_profile_content_eventstab_default' );
A guide for adding extra tabs to user profiles:
https://docs.ultimatemember.com/article/69-how-do-i-add-my-extra-tabs-to-user-profiles
Add the code snippet to your child-theme’s functions.php file
or use the “Code Snippets” Plugin.
https://www.ads-software.com/plugins/code-snippets/