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…

Google Tag Manager - Head

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXXXX'+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXXXXX');

Custom Countries

Illustrates how to add a custom list of countries This list will be used anywhere EDD…

After Checkout Event In WooCommerce

This would stop sending cart abandonment campaigns to your push subscribers in the WooCommerce store as…

om-nextjs.js

import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…

Number slider validation for single page forms

This snippet uses the wpforms_process_validate_number-slider action to check the slider value after submission.

<10

Disable New User Notifications

Disable the new user notification email for both the admin and user

FES Registration Form Redirect

Set custom redirect URLs for those who just registered to become vendors.

WP Simple Pay: Custom Decimal Separator

Changes the decimal separator from a . (period) to a , (comma).

Displaying WPForms Pro on Quiz and Survey Master Results Pages

This code snippet will ensure WPForms Pro forms displays properly on QSM results pages.

<10

Add Subscriber to Segment

This snippet helps you add the push subscriber to the segment as per the action defined.

Donation Form Email Check

If you need to do manual validation of an email when a donation is being submitted…

WPCode Snippet: MU-Plugins Sync Engine

/** * WPCode Snippet: MU-Plugins Sync Engine * Description: Synchronizes MU-Plugins FROM /wp-content/mu-plugins/ TO wpcode_snippets_sync CPT…

ismail daugherty PRO
<10

Buy Now Button - Variation

add_filter( 'gettext', 'customizing_product_variation_message', 10, 3 ); function customizing_product_variation_message( $translated_text, $untranslated_text, $domain ) { if ($untranslated_text ==…

Carla Mawyin
<10
1 33 34 35 36 37 125