WooCommerce Memberships: Add “View Subscription” Action to My Memberships
…ns, $user_membership ) { $integration = wc_memberships()->get_integrations_instance()->get_subscriptions_instance(); if ( $integration->is_membership_linked_to_subscription( $user_membership ) ) { $subscription = $integration->get_subscription_from_membership( $user_membership->get_id() ); $actions[‘view-subscription’] = array( ‘url’ => $subscription->get_view_order_url(), ‘name’ => __( ‘View Billing’, ‘my-textdomain’ ), ); $actions[‘view’][‘name’…