Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

If a subscriber logs in to view content gated by e.g. a Kit Form, and then attempts to view content gated by a Kit Product that they have not purchased, the 'no access' message is only displayed when they click the login button:

Screenshot 2025-11-03 at 16 08 41

This PR resolves by displaying the message sooner, on the gated section itself:

Screenshot 2025-11-03 at 16 08 38

Testing

  • testRestrictContentDisplaysNoticeWhenNoAccess: Test that the no access notice is displayed before clicking login on content gated by Product, after the user has logged in to access content gated by a different resource e.g. a Form.

Checklist

@n7studios n7studios self-assigned this Nov 3, 2025
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team November 4, 2025 03:04
@n7studios n7studios marked this pull request as ready for review November 4, 2025 03:05
@n7studios n7studios merged commit 4f4eb07 into main Nov 5, 2025
1128 of 1181 checks passed
@n7studios n7studios deleted the restrict-content-product-no-access-notice branch November 11, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants