<?php add_filter( 'wcs_view_subscription_actions', 'custom_remove_my_subscriptions_button', 100, 2 ); /** * Hide tabs from user accounts * * @param array $actions removing which arent required. * @param object $subscription . */ function custom_remove_my_subscriptions_button( $actions, $subscription ) { foreach ( $actions as $action_key => $action ) { switch ( $action_key ) { case 'switch': // Hide "Switch Subscription" button unset( $actions[ $action_key ] ); break; case 'resubscribe': // Hide "Resubscribe" button from an expired or cancelled subscription unset( $actions[ $action_key ] ); break; case 'reactivate': // Hide "Reactive" button on subscription unset( $actions[ $action_key ] ); break; } } return $actions; }