strangerstudios / pmpro-pay-by-check

Add a "Pay by Check" option to PMPro levels, and keep members in "pending" status until an admin changes the order status.
https://www.paidmembershipspro.com/add-ons/pmpro-pay-by-check-add-on/
11 stars 27 forks source link

Set level access check for logged in users only #72

Closed ipokkel closed 2 years ago

ipokkel commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Only check a user's levels for content access if they are logged in.

Resolves https://github.com/strangerstudios/pmpro-pay-by-check/issues/71

How to test the changes in this Pull Request:

  1. Go to Pages > Add New and create a new page containing the shortcode [membership level="0"]Display for non-members [/membership] and publish the page.
  2. In a new private/incognito browser navigate to this page as a non-logged-in visitor
  3. Confirm that Display for non-members is displayed on this page.

Other information: