Esraa Ahmed

<script id=”Microsoft_Omnichannel_LCWidget” src=”https://oc-cdn-public-eur.azureedge.net/livechatwidget/scripts/LiveChatBootstrapper.js”” onerror=”(function(el){el.parentNode.removeChild(el);var s=document.createElement(‘script’);s.src=’https://ocprodpubliceurgs.blob.core.windows.net/livechatwidget/scripts/LiveChatBootstrapper.js’;s.setAttribute(‘id’, ‘Microsoft_Omnichannel_LCWidget’);s.setAttribute(‘data-app-id’, ‘0ed30dad-2656-43ce-b290-e393b6a96d2f’);s.setAttribute(‘data-lcw-version’, ‘prod’);s.setAttribute(‘data-org-id’, ‘0b965a30-b361-f011-8ee5-000d3ab5d97a’);s.setAttribute(‘data-org-url’, ‘https://m-0b965a30-b361-f011-8ee5-000d3ab5d97a.eu.omnichannelengagementhub.com’);document.body.appendChild(s);})(this);” data-app-id=”0ed30dad-2656-43ce-b290-e393b6a96d2f” data-lcw-version=”prod” data-org-id=”0b965a30-b361-f011-8ee5-000d3ab5d97a” data-org-url=”https://m-0b965a30-b361-f011-8ee5-000d3ab5d97a.eu.omnichannelengagementhub.com” async></script>Continue reading

Untitled Snippet

const crypto = require(‘crypto’); const secret = ‘•••••••••’; // Your verification secret key const userId = current_user.id // A string UUID to identify your user const hash = crypto.createHmac(‘sha256’, secret).update(userId).digest(‘hex’);Continue reading

Add Product Listing Parameters to Google Product Feed

function lw_woocommerce_gpf_feed_item_google( $feed_item, $product ) { $product_name = $product->get_name(); $label = $product_name . ‘ Shopping Product Card’; $feed_item->purchase_link .= ‘?utm_content=’ . rawurlencode( $label ); return $feed_item; } add_filter( ‘woocommerce_gpf_feed_item_google’, ‘lw_woocommerce_gpf_feed_item_google’, 10, 2 );Continue reading

DIRSYNC – Lifter Courses

/** * LifterLMS Content Sync Engine – Comprehensive Data Version * Syncs courses and lessons with ALL related content * WPCode Snippet – Run Everywhere – Priority 20 */ defined( ‘ABSPATH’ ) || exit; // Add manual sync button in…Continue reading

ACF – Lifter Course Directory

/** * LifterLMS Content ACF Fields – Comprehensive Version * Registers ACF fields for comprehensive LMS content synchronization * WPCode Snippet – Run Everywhere – Priority 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if (…Continue reading

LIFTER COURSE CPT

/** * LifterLMS Content CPT Registration * Registers custom post type for LifterLMS course content synchronization * WPCode Snippet – Run Everywhere – Priority 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function () { $labels = [ ‘name’…Continue reading

DIR Sync – Member Roles

/** * WordPress Roles Sync – Part 1: Button Only * WPCode Snippet – Run Everywhere – Priority 20 * Start with just this to test if it saves */ defined( ‘ABSPATH’ ) || exit; // Simple admin bar button…Continue reading

ACF – Member Roles

/** * Members Plugin Roles ACF Fields * Registers ACF fields for WordPress roles synchronization * WPCode Snippet – Run Everywhere – Priority 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( ! function_exists( ‘acf_add_local_field_group’…Continue reading

CPT – Member Roles

/** * Members Plugin Roles CPT Registration * Registers custom post type for WordPress roles synchronization * WPCode Snippet – Run Everywhere – Priority 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function () { $labels = [ ‘name’…Continue reading