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()) ); }…
Allow Admin Access
Enables access for logged in users who do not have certain permissions.
Set Minimum Donation Amount
Set the minimum donation amount required.
Customize Amount Raised Text
In this example, we change how the "X donated of Y goal" text appears.
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…
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.
Back to Top Button (copy)
Add a simple button to scroll back to top on the frontend.
fullPage.js
Register and Enqueue fullPage.js library
WPForms: display a form under the confirmation message with or without user entered field values.
add_action( 'wpforms_frontend_output_success', static function ( $form_data, $fields, $entry_id ) { unset( $_GET['wpforms_return'], $_POST['wpforms']['id'] ); // If…