Hide the Email Test Menu Item in Settings

This snippet will hide the 'Email Test' tab from your WP Mail SMTP settings menu.

Defining General Settings Constants

Every constant in this section can be used for any mailer because they’re not specific to…

Prevent Duplicate Purchases

Prevents logged-in customers from purchasing an item twice.

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…

MemberPress: Add Category Exception to All Post Rule

Add a category exception to the all posts rule instead of having to add the posts…

WP Simple Pay: Programmatically Set Custom Field Default Value

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

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…

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…

MemberPress: Adding Credit Card and Expiry Information to Subscriptions Table

This snippet adds a new column to the table under the Subscriptions tab on the Account…

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
1 … 47 48 49 50 51 … 237