Standalone levels and guest checkout - #3636
Draft
dparker1005 wants to merge 1 commit into
Draft
Conversation
Adds two new per-level settings under Other Settings on the edit level page: - Standalone Level: one-time purchase, no membership assigned, no cancellations, always repurchasable. - Allow Guest Checkout: lets users check out without creating an account. Only available on standalone levels. Core changes: - New file includes/standalone-levels.php with all standalone and guest checkout logic hooked via filters and actions. - pmpro_checkout_skip_level_change filter in pmpro_complete_checkout() to skip level assignment. - pmpro_skip_user_creation filter in checkout preheader to skip user validation and creation. - pmpro_checkout_email_user filter to provide a WP_User for guest emails. - pmpro_checkout_level_name_text filter for the level name paragraph at checkout. - pmpro_checkout_before_account_fields action for the guest checkbox. - pmpro_allow_viewing_order filter on the invoice preheader for guest invoice access. - pmpro_orders_column_after_user action and pmpro_order_view_after_member_info action for guest order admin display. - Stripe gateway: null-safe fallback to billing data in update_customer_at_checkout(). - Email templates: use getMembershipLevelAtCheckout() instead of manual user/DB lookups. - Levels list: use short cost format, always call pmpro_getLevelCost(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
includes/standalone-levels.php, hooked into core via filters and actions.Still TODO
Test plan
🤖 Generated with Claude Code