SYNC_DIR – Users

/** * WPCode Snippet: WordPress Users Sync – FINAL NO DUPLICATES VERSION * Description: Bulletproof manual sync with guaranteed no duplicate posts * Location: Run Everywhere * Priority: 20 * Version: 5.0 FINAL – Complete rewrite with duplicate prevention *…Continue reading

Rest_Api_DIR – Users

/** * WPCode Snippet: Expose Users Sync ACF Fields to REST API (Application Password Auth Required) * Description: Makes ALL user sync data accessible ONLY via Application Password authentication * Location: Run Everywhere * Priority: 15 * * CRITICAL: This…Continue reading

ACF_DIR – Users

/** * WPCode Snippet: WordPress Users & BuddyBoss Profiles ACF Fields – COMPLETE * Description: Complete ACF fields for user data, BuddyBoss, WP Fusion, LifterLMS, and Gravity Forms * Location: Run Everywhere * Priority: 10 * * INSTALL ORDER: #2…Continue reading

CPT_DIR – Users

/** * WPCode Snippet: WordPress Users & BuddyBoss Profiles CPT Registration * Description: Registers custom post type for user/profile sync with full REST API support * Location: Run Everywhere * Priority: 0 * * INSTALL ORDER: #1 – Install this…Continue reading

Unique Order ID

/* * Create a unique_id Smart Tag and assign it to each form submission. * * @link https://wpforms.com/developers/how-to-create-a-unique-id-for-each-form-entry/ */ // Generate Unique ID Smart Tag for WPForms function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the…Continue reading

HosaEna Header Solid Transition

(function(){ const header = document.querySelector(‘.site-header’); function setSolidByScroll(){ if(!header) return; if(window.scrollY > 50){ header.classList.add(‘he-solid’); } else { header.classList.remove(‘he-solid’); } } window.addEventListener(‘scroll’, setSolidByScroll, {passive:true}); document.addEventListener(‘DOMContentLoaded’, setSolidByScroll); if(header){ header.addEventListener(‘mouseenter’, ()=> header.classList.add(‘he-solid’)); header.addEventListener(‘mouseleave’, ()=> setSolidByScroll()); } })();Continue reading