MemberPress: Add Currency Codes To MemberPress
This code snippet will add a custom currency to the MemberPress list of available currency codes.…
MemberPress: Redirect Users to a Specific Page Depending on a Custom Field Value
This code snippet adds a custom redirection after registration based on the value of a custom…
Remove Stats Summary Block From Specific Campaign
Hide the campaign summary stats from a few specific campaign, using the campaign IDs.
MemberPress: Exclude Protected Posts from Search Results
Removes any posts from the search results that the current user (or guest) does not have…
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…
MemberPress: Add/Override State Drop Down Values
Adding this code snippet to a website will override the list of states available under the…
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: Exclude MemberPress Custom Post Types from WordPress Search Results
By default, protected content could show up in the website search results. Though still protected, they…
MemberPress: Disable MemberPress Protection On Posts with Specific Tags
This code snippet disables content protection for posts that are tagged with a specific term (e.g.,…
MemberPress: Customize Unauthorized Message For Logged-Out Non-Authorised User and a Logged in Non-Authorised User
This snippet customizes the unauthorized message shown to users who attempt to access content protected by…
AMP Auto Ads – Body Block
Activa los anuncios AMP de AdSense en la parte del documento.
Format Date
Change the date format of the "Date of Donation" column in the Donations export.
Display both published and modified date
‹?php // Code from codewp.ai function codewp_display_dates( $content ) { if(get_post_type() != 'post') { return $content;…
MemberPress: Allow Users to Pause/Resume Subscriptions Only for Specific Memberships
For this code snippet to work, the Allow members to pause/resume their subscription option needs to…
MemberPress: Import Dropdown Options for Custom Fields
This code snippet allows bulk import of dropdown options into the custom MemberPress dropdown field. For…