Not sure if this has been resolved yet, but this is how the setup I used for our site. After months of messing around trying to figure this out, these are the settings that I have that works.
Hopes this helps. Feel free to check out our website https://www.thehorsebc.world. But it would be great if UM could do content restriction and take payments. Which could be done either by building it in or separate add-on plugins.
In Restrict Content Pro (RCP)
– create a Membership Level
– assign a User Role
– save
In Ultimate Member (UM)
– create user role with whatever permissions and access settings
– save
– Ultimate Member – Settings
– Appearance
– Registration Form
– choose a Registration Default Role
// here choose the same role as the one from RCP Membership Level
– save
This should link the two setting to the one role. It will add the Site User Role and add an active Membership when the user signs up using RCP registration form.
To get RCP membership account to show up in UM account tab I use a custom code to add the RCP shortcode into a UM account tab. The code below is what I use by creating a custom plugin.
/*********************************************************************
* function to add a tab to UM user account page to show RCP MEMBERSHIP
**********************************************************************/
/* add new tab called “membership” */
add_filter(‘um_account_page_default_tabs_hook’, ‘my_membership_tab_in_um’, 300 );
function my_membership_tab_in_um( $tabs ) {
$tabs[700][‘membership’][‘icon’] = ‘um-icon-ios-box’;
$tabs[700][‘membership’][‘title’] = ‘My Membership’;
$tabs[700][‘membership’][‘custom’] = true;
$tabs[700][‘membership’][‘show_button’] = false;
return $tabs;
}
/* make our new tab hookable */
add_action(‘um_account_tab__membership’, ‘um_account_tab__membership’);
function um_account_tab__membership( $info ) {
global $ultimatemember;
extract( $info );
$output = $ultimatemember->account->get_tab_output(‘membership’);
if ( $output ) { echo $output; }
}
/* Finally we add some content in the tab */
add_filter(‘um_account_content_hook_membership’, ‘um_account_content_hook_membership’);
function um_account_content_hook_membership( $output ){
ob_start();
?>
<?php echo do_shortcode(‘[subscription_details]’); ?>
<?php
$output .= ob_get_contents();
ob_end_clean();
return $output;
}