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

Enable ‘Quanity’ label in woocommerce

add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘bbloomer_echo_qty_front_add_cart’ ); function bbloomer_echo_qty_front_add_cart() { global $product; if ( $product->get_min_purchase_quantity() == $product->get_max_purchase_quantity() ) return; echo ‘ Quantity: ‘; }Continue reading

How to Style the WC Vendors Signup Form

/* ===================================================== WCV Vendors Signup Form – Custom Styling This CSS snippet customizes the vendor registration form to improve layout, typography, colors, and button style ===================================================== */ /* Add another column */ form#wcv-registration-form { column-count: 2; column-gap: 64px; } /*…Continue reading