Describe the bug
If you manually expire a WooCommerce subscription connected to a membership, restricted content is accessible.
To Reproduce
Steps to reproduce the behavior:
Expire a WooCommerce subscription
Restricted content is still accessible
Expected behavior
Restricted content should no longer be accessible.
This came up in ticket 454768.
I changed expiry for a test account so it would expire this morning and confirmed in the account “My subscriptions.” In woo it is showing expired. However, the account is still active, with access to all content.
Isolating the problem:
[x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro 2.9.5, Paid Memberships Pro – WooCommerce Add On 1.7.4, WooCommerce 7.0.0, and WooCommerce Subscriptions 4.6 are active.
[x] This bug happens with a default WordPress theme active, or Memberlite.
WordPress Environment
```
Paid Memberships Pro 2.9.5, Paid Memberships Pro – WooCommerce Add On 1.7.4, WooCommerce 7.0.0, WooCommerce Subscriptions 4.6.0, Twenty Twenty-One theme 1.6, WordPress 6.0.3, and PHP 7.4.30
```
Describe the bug If you manually expire a WooCommerce subscription connected to a membership, restricted content is accessible.
To Reproduce Steps to reproduce the behavior:
Expected behavior Restricted content should no longer be accessible.
This came up in ticket 454768.
Isolating the problem:
WordPress Environment