Post-States

add_filter( 'display_post_states', 'bu_style_post_state_bricks', 15, 2 ); function bu_style_post_state_bricks ($post_states, $post) { if( isset( $post_states['bricks'] ) )…

Allow SVG Files Upload

Add support for SVG files to be uploaded in WordPress media.

Defining General Settings Constants

Every constant in this section can be used for any mailer because they’re not specific to…

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

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…

MFP > Deploy Show & Get Data

add_action('acf/save_post', 'add_show_children'); function add_show_children($post_id) { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id; if (!wp_is_post_revision($post_id) && 'show' ==…

Automatically Close Campaign After Specific Amount of Seconds

The below code snippet closes your campaign after a specific amount of seconds have passed.

Food quiz 2

Getting Older Quiz 🧠 Healthy Food Quiz for Older Adults Submit Quiz

Payment Method Smart Tag

This code only has handling for klarna, us_bank_account and card (default). The other available types are…

om.Api.init

document.addEventListener('om.Api.init', function(event) {} );

om.WebFonts.init

document.addEventListener('om.WebFonts.init', function(event) { console.log(event.detail.WebFonts); console.log(event.detail.Campaign); } );

1 103 104 105 106 107 124