$rlgn = get_field(‘Rlgn’); // Get the ACF field value if (!$rlgn) return; // Define the color mapping $colors = [ ‘Ethnoreligion’ => ‘#590cc6’, ‘Buddhism’ => ‘#c61836’, ‘Hinduism’ => ‘#d87716’, ‘Judaism’ => ‘#ede71d’, ‘Islam’ => ‘#0b7034’, ‘Shinto’ => ‘#6d0c23’, ‘Sikh’ =>…Continue reading
function pg_arcgis_map_shortcode() { if (!is_singular(‘people_groups’)) return ”; $peid = get_post_meta(get_the_ID(), ‘PEID’, true); if (!$peid) return ‘ No PEID found. ‘; return ‘ ‘; } add_shortcode(‘pg_arcgis_map’, ‘pg_arcgis_map_shortcode’);Continue reading
/** * ============================================================================ * UG Checkout – Bundle Display V1.6 * ============================================================================ * * V1.6 CHANGES (2026-07-04, F12-verified before inclusion): * – STANDARD (non-bundle) products now get the same treatment as the * bundle parent: native qty stepper hidden, compact…Continue reading
/** * ============================================================================ * UG VAT Totals V1.22 – Totals display: checkout, order pages & emails * ============================================================================ * * REPLACES: UG VAT Totals V1.17. * * V1.22 CHANGES (2026-07-06): shipping label private/company decision now * prefers the posted ug_customer_type…Continue reading
/** * ============================================================================ * UG Checkout – Customer Type & VAT V2.5 (consolidated) * ============================================================================ * * REPLACES (keep the old ones DEACTIVATED as rollback until go-live cleanup): * – 40746 UG Checkout – Privat/Firma Toggle V1.1 (UI ONLY –…Continue reading
/** * ============================================================================ * UG – Admin Order Fragtmand Flag * ============================================================================ * * Visual indicators in WP admin to help order processors quickly identify * orders that contain a Fragtmand (oversized freight) product. These orders * must be handled…Continue reading
/** * ========================================================= * UG CHECKOUT – FJERN BEMÆRKNINGER TIL ORDREN * ——————————————————— * Formål: * – Fjerner WooCommerce-feltet “Bemærkninger til ordren” * fra checkout. * * Teknisk felt: * – name: order_comments * – id: order_comments * – wrapper:…Continue reading
add_action(‘wp_footer’, function () { $current_url = $_SERVER[‘REQUEST_URI’]; if ( is_404() || strpos($current_url, ‘/voorwaarden/privacyverklaring/’) !== false || strpos($current_url, ‘/voorwaarden/cookies/’) !== false ) { return; } echo ‘ × Ik gebruik cookies om de website goed te laten werken en het gebruik…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
add_filter( ‘wpseo_opengraph_title’, function( $og_title ) { // Gebruik altijd de Yoast SEO-titel als OG-title if ( function_exists( ‘wpseo_replace_vars’ ) ) { $title = wpseo_replace_vars( WPSEO_Meta::get_value( ‘title’ ), get_post() ); if ( ! empty( $title ) ) { return $title; }…Continue reading