/* * Snippet #48: Homepage/PGs of the world – ArcGIS API / MySQL fallback PG stats – create shortcodes – PROD LIBRARY * Type: php * Location: frontend_only * Tags: stats * Modified: 2026-01-30 21:09:27 */ /** * ArcGIS People…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
add_action(‘admin_notices’, function () { if (!current_user_can(‘manage_options’)) { return; } echo ‘ WPCode test is working. ‘; echo ‘ Application Passwords Global: ‘ . (wp_is_application_passwords_available() ? ‘YES’ : ‘NO’) . ‘ ‘; if (function_exists(‘wp_is_application_passwords_available_for_user’)) { $user = wp_get_current_user(); echo ‘ Application…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