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:
https://codeable.io/developers/restrict-content-pro/
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(
RCP_UMUltimateMember2::get_instance(),
‘account_page’
) );
} );

/**
* Recreated RCPUM account page with modified output
*/
add_action( ‘um_account_content_hook_subscription’, function ( $info ) {
ob_start(); ?>