Prevent Duplicate Purchases

Prevents logged-in customers from purchasing an item twice.

MemberPress: Display User's Course Progress in MemberPress Courses

The code snippet registers a new shortcode: [mpcs_user_courses_progress]. Adding this shortcode will display all MemberPress courses…

Set Custom Donation Receipt Page For Offline Donations

You may want to use a different donation receipt page for Offline donations than your other…

Profile Data Shortcode

Renders the value of a single Profile Form field. Accepts one value, key. But it has…

WP Simple Pay: Programmatically Set Custom Field Default Value

Use metadata as the default value for a payment form's custom field.

Move User Fields In Donation Form

In this example we move the user fields section (the "Your Details" bit) to appear below…

MemberPress: Restrict Signups to a Specific Country

This code snippet limits registration to users from the specified country only. If users from other…

Add User Field

This adds a field to the end of the "Your Details" section in the Profile form.

Auto register guests that purchase

function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…

Carla Mawyin
<10

quiz

// setup console.log("running"); let q = 1; const submit = document.getElementById("next-button"); const question = document.getElementById("question"); //…

MemberPress: Add a description to Order Bumps on the registration page

In this example, a description is added to an Order Bump with a membership ID of…

Remove Terms Fields

If you would like to enable the terms and conditions, privacy policy and user contact consent…

1 45 46 47 48 49 225