/** * ============================================================ * 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
function youtube_dashboard() { $api_key = “AIzaSyBzzf22Vs5sMf1eoCuhN3-0Qtnj0EKu7Bk”; $channel_id = “102319916649-hmjdaecid7f96ql384nd80ie8mn13fjj.apps.googleusercontent.com”; // ganti channel kamu $url = “https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics&id=$channel_id&key=$api_key”; $response = wp_remote_get($url); if (is_wp_error($response)) { return “Error ambil data”; } $body = json_decode(wp_remote_retrieve_body($response), true); $data = $body[‘items’][0]; $title = $data[‘snippet’][‘title’]; $subs = $data[‘statistics’][‘subscriberCount’];…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
/** * Save registration fields in custom user meta keys * and show them in the WordPress Users list. */ add_action(‘user_register’, function ($user_id) { if (!$user_id) { return; } $field_map = array( ‘account_type’ => ‘account_type’, ‘afm’ => ‘afm’, ‘phone_1’ =>…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
/** * Gewerbe Risikoanalyse Formular * Shortcode: [risikoanalyse_formular] * WPCode-kompatibel * CSS/JS sauber per wp_enqueue eingebunden */ if (!defined(‘ABSPATH’)) { exit; } if (!defined(‘GVS_RA_TABLE’)) { define(‘GVS_RA_TABLE’, ‘gvs_risikoanalyse_anfragen’); } /** * DB-Tabelle anlegen */ if (!function_exists(‘gvs_ra_maybe_create_table’)) { add_action(‘init’, ‘gvs_ra_maybe_create_table’); function gvs_ra_maybe_create_table()…Continue reading