Enable WP Mail SMTP Constants

This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…

Dynamic Monsterlinks By Class Name

// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll("a.myClass"); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href =…

om.Campaign.init.preload

document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });

WSG GTM Body Tag

Add GTM Tag to Site Body in WSG Site Group

Colin Bunn PRO
<10

Google Tag Manager

Google Tag Manager is a tag management system created by Google to manage JavaScript and HTML…

Chatbot backend

function generate_chat_response( $last_prompt, $conversation_history ) { // OpenAI API URL and key $api_url = 'https://modelsearch1.openai.azure.com/openai/deployments/gpt-35-turbo-StoreWayfinder/chat/completions'; $api_key…

How to Display Hidden Single Item Fields in Order Summary

This code snippet will display the hidden single item field in order summary

<10

Add Payment ID to Sales API

If sequential order numbers are on, those numbers are returned in the sales API instead of…

Add User to RCP Subscription on Purchase

Add customer to an RCP subscription level when they purchase a specific product.

Only count last file

This plugin makes it so that All Access only increments the download counter if the customer…

Add Tax ID to Shipping Label

/** * Add the Tax ID Field to the settings page * * In this example…

Including product tax to commission calculation

add_filter( 'wcvendors_commission_rate', 'wcv_calculate_commission_include_product_tax', 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product…

1 44 45 46 47 48 78