WPCode Admin Number of Snippets (copy)
Change the number of snippets displayed in the admin list using a filter.
WooCommerce Programmatically Cancel Pending Orders After 1 Hour
Post More Detail It’s possible that you’re thinking, “But I can already do that using the…
0000 > CLASS > Show Data
// this is the class definition class myfair_Show_Data { public function __construct() { $this->loadShows(); if (isset($this->showList)…
Buy with Prime
add_action( ‘woocommerce_after_add_to_cart_form’, ‘QL_add_text_under_add_to_cart’ ); function QL_add_text_under_add_to_cart () { global $product; ?>
Change "Email" On Donation Form
This will change wording on the donation form for the "Email" field, although this snippet can…
MemberPress: Update MemberPress Account Course Tab Link With A Custom URL
This code snippet customizes the default URL of the Courses tab link in the navigation menu…
MemberPress: Disable MemberPress Protection Based on Custom Post Type And Tag
This code snippet disables content protection for specific post types that are also tagged with a…
MemberPress: Change Email Subject in Bulk
The code snippet replaces email subject on all emails containing a specified phrase in the current…
Retrieve Card Details from Stripe Checkout One-Time Payments
This snippet ensures that the last four digits and card brand are available in payment confirmations…
MemebrPress: Send Membership-Specific Welcome Email Only When Transaction Is Completed
The code snippet will allow the membership-specific welcome email to be triggered only following the successful…
Restrict payment methods based on cart total
Restrict payment methods based on cart total
Database connection test snippet
A snippet to test the connection to the database.
om.Dtr.init
document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );