Open external links in new tab
document.addEventListener("DOMContentLoaded", function() { var links = document.querySelectorAll("a[href]"); links.forEach(function(link) { if (link.hostname !== window.location.hostname) { link.setAttribute("target", "_blank");…
Custom Countries
Illustrates how to add a custom list of countries
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Disable PayPal for Multi-Item Checkout
Disables the PayPal gateway when the cart contains multiple items. PayPal disabled the ability to purchase…
How to change the store address country for all vendors
/** * Set the vendor's store country to us. */ function wcv_set_vendor_country() { if ( function_exists(…
Remove Subscriber from Segment
This snippet helps remove a push subscriber from a segment on the defined event.
Extra WordPress Filters in Pro (Do something with the age restriction display) | Display Eventbrite Events
Using this filter you can change the age restriction display. e.g. all_ages by default displays nothing,…
Blocks on templates
Setting a specific block on specific templates by default
KI
Test
Untitled Snippet
// Get the butterflies container const butterfliesContainer = document.querySelector('.butterflies'); // Create a function to generate a…
om-emberjs.js
// Using Ember.js. import Route from '@ember/routing/route'; export default Route.extend({ beforeModel(transition) { if (window.om5678_1234) { window.om5678_1234.reset();…
slide-bottom-center.css
html div#om-{{id}} { width: 350px !important; left: calc(350px / 2) !important; right: calc(350px / 2) !important;…