Dynamic Copyright Date
if ( ! function_exists( 'wpb_copyright' ) ) { function wpb_copyright() { // Cache the output so…
MemberPress: Display Custom Field Value Instead of Customer Name in PDF Invoice
This code snippet enhances your MemberPress PDF invoices by automatically displaying a company name at the…
MemberPress: TaxJar - Prevent Sending VAT Transactions to TaxJar
When the MemberPress TaxJar integration is active, by default, MemberPress will send all transactions to TaxJar,…
MemberPress: Remove MemberPress Weekly Stats Widget from WordPress Dashboard
This code snippet removes the MemberPress Weekly Stats widget from the WordPress admin dashboard. This can…
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
Block specific coupons during set hours
/** * Block specific coupons during set hours (1:00 PM - 3:00 PM) */ function block_coupon_during_specific_hours($valid,…
om.Lock.init
document.addEventListener('om.Lock.init', function(event) { console.log(event.detail.Lock); // The method that will be used for locking the content. console.log(event.detail.Lock.method);…
om.PoweredBy.init
document.addEventListener('om.PoweredBy.init', function(event) { console.log(event.detail.PoweredBy); console.log(event.detail.Campaign); } );
om.Optin.success
document.addEventListener('om.Optin.success', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Open graph
fix
Verzend mogelijkheden weghalen bij gratis verzenden behalve ophalen op locaite
function custom_hide_shipping_when_free_shipping_is_available( $rates, $package ) { $free_shipping_exists = false; $local_pickup_exists = false; // Check if Free…