Modify subscription tab output

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:

This snippet demonstrates how you can change what appears on the subscription tab created by Restrict Content Pro – Ultimate Member.

* Remove RCPUM account_page function
add_action( 'wp_loaded', function () {
remove_action( 'um_account_content_hook_subscription', array(
) );
} );

* Recreated RCPUM account page with modified output
add_action( 'um_account_content_hook_subscription', function ( $info ) {
ob_start(); ?>
<div class="um-account-heading uimob340-hide uimob500-hide">
<i class="
<?php echo esc_attr( $info['icon'] ); ?>"></i><?php echo esc_html( $info['title']
); ?>

if ( ! has_shortcode( get_the_content(), 'subscription_details' ) ) {
echo do_shortcode( '[subscription_details]' );
if ( ! has_shortcode( get_the_content(), 'rcp_update_card' ) ) {
echo do_shortcode( '[rcp_update_card]' );
return ob_get_clean();
} );
Have more questions? Submit a request
Powered by Zendesk