Post class update

add_filter( 'body_class', function( $classes ) { $acc_type=tmwp_get_user_role(); if (!$acc_type) $acc_type='anonymous'; return array_merge( $classes, array('acc-type-'.strtolower($acc_type),tmwp_get_page_class()) ); }…

Set Minimum Donation Amount

Set the minimum donation amount required.

MemberPress: Remove Accordion from Courses

Use this snippet if you would like to remove the accordion CSS and JS from the…

MemberPress: Change Membership Registration URL

Each MemberPress Membership has an automatically generated registration page with its default URL. This code snippet…

MemberPress: Send “Profile Updated” Admin Notification When MemberPress Account Is Updated

Similar to the code snippet here: https://library.wpcode.com/snippet/m5ye1wj2/, this code sends a notification to the admin when…

MemberPress: Redirect Users After Login Based on Roles

This code snippet customizes the login redirection in MemberPress based on user roles. Users with roles…

MemberPress: Disable MemberPress Protection Based on Custom Post Type And Tag

This code snippet disables content protection for specific post types that are also tagged with a…

MemberPress: Exclude Specific Custom Fields from MemberPress Registration Forms

This code snippet allows you to hide specific custom fields on MemberPress registration forms when a…

MemberPress: GDPR Cookie Compliance - Load GDPR Compliance Stylesheet In Memberpress ReadyLaunch Template

This code snippet loads a specific GDPR Cookie Compliance stylesheet in the MemberPress ReadyLaunch templates. This…

Disable Donation Receipt For Offline Donations

Disable the donation receipt email for offline donations.

Set Maximum Donation Amount

Set the maximum donation amount required.

MemberPress: Require Coupon at Checkout

Make the coupon field required at checkout.

1 10 11 12 13 14 28