Type: php
Consent-cookies zonder wp_-prefix (edge cache)
add_filter( ‘wp_consent_cookie_prefix’, function () { return ‘ddmca_consent’; } );Continue reading
PCBoost — Twin routing own first v1.1
/* ============================================================ PCBoost – Twin routing: own stock first + cheaper-twin notice v1.1 – 2026-10-06 (WPCode snippet – PHP, Run Everywhere) v1.1: delivery tiers from Twin Merge v2.6 (-3D / -7D / -10D SKUs): notes name the twin’s delivery time…Continue reading
Pcb block refunds
/** * PCBoost – Block refunds for selected admin users (v1.0) * * WPCode: PHP Snippet, Auto Insert, Run Everywhere. * The user keeps every other permission (orders, products, notes, statuses). * Only refunds are blocked: the order-screen Refund button,…Continue reading
No refurbissed rec Seagate
add_filter( ‘posts_where’, function ( $where, $query ) { if ( is_admin() || ! $query->is_main_query() || ! $query->is_tax( ‘pa_brand’, ‘seagate’ ) ) { return $where; } global $wpdb; $where .= ” AND {$wpdb->posts}.post_title NOT LIKE ‘%recertified%’” . ” AND {$wpdb->posts}.post_title NOT…Continue reading
BACKUP v2.2 Pcboost marketing optin (pre-ticked box) – do not activate
/* ============================================================ PCBoost – Marketing Opt-in v2.2 (WPCode snippet – PHP, Run Everywhere) v2.0: * Checkout box is now PRE-TICKED and customers untick to opt out. Legal basis stays PECR soft opt-in (s.22(3)) + UK GDPR legitimate interests. It is…Continue reading
UGREEN x Seagate drive filter (MDF156926)
/** * PCBoost | UGREEN x Seagate drive filter (v2, 7 Nov 2026) * * Only clicks from https://pcboost.co.uk/ugreen-nasync-nas-uk/ (page 22627) open UGREEN products in * “Seagate mode”: the configurator shows only Seagate IronWolf, IronWolf Pro and 0TB. * No…Continue reading
PCBoost — Builder summary qty stepper (v1.0)
/** * PCBoost – Builder summary quantity stepper (v1.0, 12 Nov 2026) * * PC builders (Composite Products, layout “paged-componentized”): the “Your Selections” card of a step that has a * quantity (Storage, max 2) showed GeneratePress’s placeholder “-” and…Continue reading
PCBoost – Payment recovery email 1h after failed payment (v1.1)
/** * PCBoost – Payment recovery email (v1.1) * * Replaces the instant WooCommerce “Failed order” email to the customer. * When an order fails, a check runs 1 hour later. The customer gets ONE * recovery email with a…Continue reading
PCBoost — Speed: delay marketing tags + smart cart fragments (v1.0)
/** * PCBoost — Speed: delay marketing tags + smart cart fragments (v1.0) * * What it does (front end only, never on cart / checkout / order-received / my-account): * 1. Meta, Pinterest, OpenAI, Google Ads/GA4 (gtag.js + config)…Continue reading