Show 'NEW' Badges for Recently Added Items in WooCommerce
This code snippet adds a “NEW!” badge to products in WooCommerce, indicating that they are newly…
MemberPress: Add Custom Message Before Payment Methods Section On Registration Pages
This snippet adds a custom message before the section showing available payment methods on MemberPress regisatrtion…
Disable Posts Post Type
This snippet hides the default Posts post type from the WordPress admin
Google Tag Manager Header
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
Customize Amount Raised Text
In this example, we change how the "X donated of Y goal" text appears.
MemberPress: Add a Custom Field To Manage Sub Account Table
This shortcode can be used if the MemberPress Corporate Accounts add-on is activated on the website.…
MemberPress: Set Default Country on Registration Page
This code will help set specified country as default country for the Country field on MemberPress…
Custom Cart Row
Provides a function which can be modified to add a custom row of HTML to the…
WP Simple Pay: Custom Smart Tag
Register a custom Smart Tag with PHP, and control the output.
MemberPress: Modify the Order of the Registration and the Account Form Fields
Each field in the registration and account form is a separate element. Thus, the order of…
Add Read More Link
Add a Read More link to the campaigns in the campaign grid.
Disable emails on free purchases
If the purchase was for a free product, don't send any emails.
Google Tag Manager Head
Google tag Manager Snippet (head section)
MemberPress: Disable the Default WordPress Password Reset Link E-Mail
If the "Disable Password Fields on membership registration forms" option is active in MemberPress settings (Dashboard…
Helper functions to make generating WordPress post type labels and taxonomy labels easier
Generate post type and taxonomy labels easily by specifying the singular and plural version of the…