Copyright Footer TXT (PHP)

/** * Copyright Shortcode * * Outputs copyright text with current year, site name, and Westline Marketing link. * * Usage: [copyright] */ function copyright_shortcode($atts) { // Get current year $current_year = date(‘Y’); // Get site name (WordPress function) $site_name…Continue reading

HTTP naar HTTPS

/** * Plugin Name: HTTPS Doorverwijzing (Internet.nl Compliant) * Description: Forceert HTTPS doorverwijzing volgens NCSC richtlijnen voor Internet.nl test * Version: 1.0 * Author: Pixelsz */ if ( ! defined( ‘ABSPATH’ ) ) exit; /** * 1) Force HTTPS redirect…Continue reading

Add Commodity Codes to Stripe

/** * Add a commodity code to all line items sent to Stripe. * * @param string|null $code The commodity code. * @param int $download_id The download ID. * @param array $cart_item The cart item. * @return string|null The commodity…Continue reading

Homepage/PGs of the world – ArcGIS API / MySQL fallback PG stats – create shortcodes – PROD LIBRARY

/** * ArcGIS People Groups Statistics * Queries the pIMBpeoplePublic FeatureServer and displays statistics * */ // Define the ArcGIS service URL if (!defined(‘ARCGIS_SERVICE_URL’)) { define(‘ARCGIS_SERVICE_URL’, ‘https://services2.arcgis.com/S4ydGgujXcif36k3/ArcGIS/rest/services/pgOrgPointsStaging/FeatureServer/0/query’); } /** * Query ArcGIS service for statistics * * @param string $where_clause…Continue reading