/** * Fix: Force query string format for all affiliate referral URLs. * * Part 1: Updates the in-memory settings so the portal URL generator * and affwp_get_affiliate_referral_url() both produce ?ref=value * format instead of /ref/value/ format. No database change.…Continue reading
add_action(‘init’, function () { add_rewrite_rule(‘^meta-checkout/?$’, ‘index.php?meta_checkout=1’, ‘top’); }); add_filter(‘query_vars’, function ($vars) { $vars[] = ‘meta_checkout’; return $vars; }); add_action(‘template_redirect’, function () { if (!get_query_var(‘meta_checkout’)) { return; } if (!function_exists(‘WC’) || !WC()->cart) { return; } // Clear current cart so Meta…Continue reading
/** * ============================================================ * Cart Page — Security Trust Badge Bar * ============================================================ * * PURPOSE: Adds a clean trust badge row below the “Proceed to * Checkout” button on the cart page to increase * conversion confidence. * *…Continue reading
/** * ============================================================ * Hide Duplicate Astra Header on Checkout * ============================================================ * * PURPOSE: Hides the default Astra #masthead header and the * gray shadow box around the checkout page title. * Spectra-built custom header remains visible. * *…Continue reading
/** * ============================================================ * GUARDEDPAY PRO — Phase 4: FAQ Accordion * ============================================================ * * PURPOSE: Adds 4 FAQ accordion items inside the GuardedPay * payment box, below the gray compliance widget. * Addresses top 4 customer concerns per v3.0…Continue reading
/** * ============================================================ * GUARDEDPAY PRO — Phase 2: Heading + Trust Badges (v2) * ============================================================ * * PURPOSE: Injects “Complete Your Order” heading, supporting text, * and trust badges INSIDE the GuardedPay payment method * area — between the…Continue reading
/** * Block AffiliateWP referrals for existing WooCommerce customers. * * Allows referral commissions only on a customer’s first-ever order. * Any returning customer will not generate a referral, regardless of * affiliate links clicked or coupons used. * *…Continue reading
/** * ============================================================ * GUARDEDPAY PRO — Phase 1 Removal (PERMANENT) * ============================================================ * * PURPOSE: Hides “I Already Have A Coverage Code” radio option * from GuardedPay widget on checkout. * Overrides red border on GuardedPay payment widget. *…Continue reading
/** * Restrict Checkout Referrals to a Specific User Role & Filter Affiliates by Role * * – Only displays the Checkout Referrals dropdown to logged-in users * with the ‘influencer_sales’ role. * – Filters the affiliate dropdown to only…Continue reading