Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Support for gating content by subscribing to a Kit Form was added in this PR, but it wasn't included in the setup wizard.

This PR resolves by adding support for Kit Forms to the dropdown when using the setup wizard for gating content, and uses the same field description as used on the Post / Page meta box.

Screenshot 2025-06-20 at 01 48 38

Testing

  • testAddNewMemberContentDownloadsByForm: Test that the Add New Member Content > Downloads generates the expected Page and restricts content by the selected Form.
  • testAddNewMemberContentCourseByForm: Test that the Add New Member Content > Course generates the expected Pages and restricts content by the selected Form.

Checklist

@n7studios n7studios self-assigned this Jun 19, 2025
@github-actions
Copy link

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 June 23, 2025 07:17
@Kit Kit deleted a comment from github-actions bot Jun 23, 2025
@n7studios n7studios marked this pull request as ready for review June 23, 2025 07:18
Copy link
Contributor

@noelherrick noelherrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have a test for adding a form and restricting content based on that - where's the logic that actually checks that the subscriber has the form?

@n7studios
Copy link
Contributor Author

I see you have a test for adding a form and restricting content based on that - where's the logic that actually checks that the subscriber has the form?

The test functions, as well as all of those in RestrictContentFormCest, call the testRestrictedContentByFormOnFrontend helper method, which performs these checks.

@n7studios n7studios merged commit e9b1a02 into main Jun 24, 2025
850 of 893 checks passed
@n7studios n7studios deleted the add-form-support-restrict-content-wizard branch July 12, 2025 03:03
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