Merged
Conversation
…ress_event post type, enabling any post type to opt into RSVPs.
Contributor
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Contributor
Test Coverage Report✅ All coverage checks passed! ✅ PHP Coverage✅ JavaScript CoverageThis comment is automatically updated on each push. |
Contributor
Preview changes with PlaygroundYou can preview the recent changes for PR#1444 with the following PHP versions: PHP Version 8.4
PHP Version 8.2
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
mauteri
marked this pull request as ready for review
April 2, 2026 01:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Adds
gatherpress-rsvpas a registered post type support ongatherpress_event, decoupling RSVP functionality from the hardcoded post type. Any post type can now opt into the full RSVP system viaadd_post_type_support('my_cpt', 'gatherpress-rsvp').Changes include:
Event::POST_TYPE === get_post_type()checks withpost_type_supports( get_post_type(), 'gatherpress-rsvp' )across all RSVP-related PHP classes and blocksget_rsvps()now queries all post types withgatherpress-rsvpsupport instead of hardcodinggatherpress_eventsave_post_gatherpress_eventhook replaced withsave_post+ support check for waiting list processingisPostTypeSupporting( support, postType )generic JS helper;isEventPostType()becomes a thin wrapper around it; RSVP blocks use it to checkgatherpress-rsvpfor editor dimming contextScope: Covers
gatherpress-rsvponly. Venue and online-event supports are planned for future PRs.Ways to test:
gatherpress_eventpost, confirm RSVP blocks render in the editor and on the frontend, RSVP form submissions work, waiting list processes correctlygatherpress-rsvpsupport, confirm RSVP blocks render and are not dimmed in the editor, and RSVP form submissions work on the frontendpostorpage, and RSVP form submissions are rejected with a 400 errorgatherpress_eventgatherpress_eventnpm run test:unit:phpnpm run test:unit:jsChangelog Entry
Credits
Props @mauteri
Checklist: