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: Expire Subscription Immediately After Subscription Is Canceled

By default, canceling subscriptions prevents future charges, but it does not end existing subscriptions, which allow…

MemberPress: Change Stripe Checkout fields to match Dark Mode theme

Adjust the appearance of Stripe Elements form by changing the theme to 'night' if a user…

MemberPress: Customize Default WordPress Password Reset Request Email Body

This code snippet customizes the body of the password reset request email sent to users from…

Add a “Rate this recipe” Tasty Recipes quick link

After applying this snippet, your new quick link should appear at the top of the recipe…

<10

Set Fixed Donation Amount

Automatically set the donation amount and recurring period for donations.

MemberPress: Change Stripe Payment Description

Change the Stripe payment descriptor for non-recurring payments.

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()) ); }…

MemberPress: Add a Shortcode To Display the Number of Total Downloads for All Files

Adds the following shortcode: [mepr-display-total-downloads]. When added to any page or post, the shortcode will display…

MemberPress: Add An Email Parameter That Displays A Link To The Sub-Account Signup Page

This code will create a new email parameter named {$subaccount_link}. This email parameter can be added…

MemberPress: Change Country VAT Rate for a Certain Membership

The code snippet will modify the VAT rate on registration for a specified membership only if…

MemberPress: Exclude Protected Posts from Search Results

Removes any posts from the search results that the current user (or guest) does not have…

1 15 16 17 18 19 29