LevCharity’s Peer-to-Peer (P2P) feature uses shortcodes to embed user-facing forms for account signup and personal campaign creation. These shortcodes can be added to any page or post using the WordPress block editor or custom templates.
Shortcode for Signup and Campaign Creation #
To allow users to register and create their own P2P campaign, use the following shortcode:
csharpCopyEdit
What This Shortcode Does #
This shortcode manages the entire user flow for creating a peer-to-peer campaign:
- Signup/Login
- If the user is not logged in, the signup form is displayed.
- Returning users can log in directly from this form.
- Campaign Creation
- Once logged in, users are shown a form to create their personal P2P campaign.
- Redirect on Completion
- After the campaign is created, users are redirected to a thank-you or confirmation page.
This setup simplifies onboarding and campaign setup for fundraisers, making it easy to get started with P2P fundraising through any WordPress page.