add_action(‘admin_notices’, function () { if ( ! current_user_can(‘manage_options’) || ! isset($_GET[‘pcb_sftp_ls’]) ) { return; } $pass = defined(‘PCB_OAI_SFTP_PASS’) ? PCB_OAI_SFTP_PASS : ”; $out = array(); $out[] = ‘last push : ‘ . get_option(‘pcb_oai_last_run’, ‘(never)’); $next = wp_next_scheduled(‘pcb_oai_push_event’); $out[] = ‘next…Continue reading
/** * PCBoost – Facebook catalogue: strip thousands separators from prices. * * CTX Feed inherits WooCommerce’s price format, which writes “5,488.99 GBP”. * Meta requires a plain number. There is no CTX Feed setting for this, so the *…Continue reading
/** * PCBoost – Meta Pixel + WooCommerce events * * Fires PageView, ViewContent, AddToCart and Purchase with content_ids that * match the Facebook catalogue feed exactly (WooCommerce product / variation ID). * Without matching IDs Meta cannot link ad…Continue reading
/* ============================================================ PCBoost — Google Ads conversion tracking v1.1 WPCode snippet — type: PHP Snippet, location: Run Everywhere 1. Attaches the Google Ads tag (AW-10848271722) to the gtag.js already loaded by the child theme. If that tag ever disappears again…Continue reading
add_shortcode( ‘pcb_wd_grid’, function( $atts ) { $a = shortcode_atts( array( ‘brand’ => ‘western-digital’, ‘category’ => ‘surveillance-hdds-data-storage’, ‘mode’ => ‘single’, ‘limit’ => 8, ‘columns’ => 4, ), $atts ); $q = new WP_Query( array( ‘post_type’ => ‘product’, ‘post_status’ => ‘publish’, ‘posts_per_page’…Continue reading
/* ============================================================ PCBoost — GA4 WooCommerce Ecommerce Events v2.2 WPCode snippet — type: PHP Snippet, location: Run Everywhere BEFORE YOU PASTE THIS: disable snippet 187062 (“PCBoost — GA4 WooCommerce Ecommerce Events”, v1.0). v1.0 also sends add_to_cart, begin_checkout and purchase. With…Continue reading
/* ============================================================ PCBoost – Marketing Opt-in v2.3 (WPCode snippet – PHP, Run Everywhere) v2.3 (15 Oct 2026, Bogdan’s OK): * The checkout box is an UNTICKED opt-out again – the form the ICO shows as good practice for soft opt-in:…Continue reading
/* PCBoost PC builder: more options per page in the configurator. */ add_filter( ‘woocommerce_component_options_per_page’, ‘pcb_cp_options_per_page’, 10, 1 ); function pcb_cp_options_per_page( $per_page ) { return 12; } /* PCBoost PC builder: warranty priced from the components chosen, on descending bands. */…Continue reading
/** * PCBoost – Builder default fallback v1.1 – 2026-09-27 * * WHAT IT DOES * – Scope: WooCommerce Composite Products whose SKU starts with “PCB-BUILD-” (the PC configurators). * – When a component’s configured default option is out of…Continue reading
/** * PCBoost – NAS configurator UX v0.10.4 – 2026-09-27 * * Scope: composite products with the product meta pcb_nas_cfg = 1 (set per NAS during the rollout), * plus the IDs from pcb_nas_cfg_ids() (test clone 191387). Delete the meta…Continue reading