SVG Tooltip

const tooltip = document.getElementById(“map-tooltip”); document.querySelectorAll(“.county”).forEach(path => { path.addEventListener(“mousemove”, e => { tooltip.textContent = path.dataset.tooltip; tooltip.style.left = e.pageX + “px”; tooltip.style.top = e.pageY + “px”; tooltip.style.opacity = 1; }); path.addEventListener(“mouseleave”, () => { tooltip.style.opacity = 0; }); });Continue reading

Show Certain Products to Certain Wholesale Customers Only

add_action( ‘pre_get_posts’, function ( WP_Query $query ) { // Only affect frontend main product queries (shop, category, etc.) if ( is_admin() || ! $query->is_main_query() || ‘product’ !== $query->get( ‘post_type’ ) ) { return; } $user_id = get_current_user_id(); // Admins /…Continue reading

NEXTSTEP SHORTCODE CRONJOB

/** * Compliance Calendar – Cron Jobs (Overdue Detection) * Checks for overdue compliance items and sends notifications via GHL webhook * * @package BHA_Portal * @subpackage Compliance_Calendar * @version 6.1 * * WPCODE SETTINGS: * – Location: Run Everywhere…Continue reading