PCBoost — Job Application Form

/* ============================================================ PCBoost — Job Application Form (WPCode snippet — PHP, Run Everywhere) Front end: place the shortcode [pcb_job_application] on a page (e.g. /careers/ or /work-with-us/). Candidates tick whichever skill areas genuinely apply to them – nothing is mandatory beyond…Continue reading

PCBoost — OpenAI Feed Diagnostic (temporary)

add_action(‘admin_notices’, function () { if ( ! current_user_can(‘manage_options’) || ! isset($_GET[‘pcb_feed_diag’]) ) { return; } $c = function_exists(‘curl_version’) ? curl_version() : array(‘version’ => ‘n/a’, ‘protocols’ => array()); $csv = WP_CONTENT_DIR . ‘/uploads/woo-feed/chatgpt/csv/openaiads.csv’; $info = array( ‘php version’ => PHP_VERSION, ‘ssh2…Continue reading

PCBoost – SFTP listing diagnostic (temporary)

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 feed price format fix

/** * 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

/** * 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

/* ============================================================ 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

PCBoost WD product grid shortcode

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.0

/* ============================================================ 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 optin

/* ============================================================ 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 logic (warranty + options per page)

/* 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