Set Minimum total purchase amount
add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Change TikTok purchase Event
When using the WPCode Conversion Pixels addon the event name used when a purchase is completed…
Customize Action Scheduler Retention Period
This snippet allows you to change the default 30-day storage for the Action Scheduler retention period.
Define the Mailgun Signing Key Constant
This snippet will allow you to define your Mailgun Signing Key constant inside your wp-config.php file…
MemberPress: Disable Emails for Specific Memberships
The code snippet will disable emails from being sent based on the text matching a membership…
MemberPress: Delete Transaction and User Account When Sub-Account is Removed
Adding this code snippet will automatically delete user account and related transaction when a sub-account is…
Instagram Shop
Instagram and Facebook
WP Mail SMTP: when using SMTP mailer - disable SSL verification
This is an insecure approach and you most probably should fix your servers' SSL certificates (they…
Remove Download Links
Remove download links from checkout page for all downloads.
Remove hyperlink from name field
add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/
Bing Webmaster
Bing Webmaster snippet
Add user registration date
/* * Creating a column (it is also possible to remove some default ones) */ add_filter(…
Gina
Chatbot
MemberPress: Add Custom Field to Transactions Table
This code snippet will add data collected through a custom field on MemberPress registration forms to…