/** * WPCode Snippet: Gravity Forms & Feeds ACF Fields * Description: Registers ACF fields for form and feed data + notification/confirmation content * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() {…Continue reading
/** * WPCode Snippet: Gravity Forms & Feeds CPT Registration * Description: Registers custom post type with full REST API support * Location: Run Everywhere * Priority: 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function() { $labels =…Continue reading
/** * 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
/** * ArcGIS People Groups Statistics * Queries the pIMBpeoplePublic FeatureServer and displays statistics * * Usage for WPCode: * – Set snippet type to “PHP Snippet” * – Set location to “Run Everywhere” * – Use shortcodes in your…Continue reading
/** * Plugin Name: Pixelsz – Kernfuncties (V17.0) * Description: Whitelist-rechten gefixt. Kernfuncties & Beveiliging voor whitelist; niet-whitelist ziet E-mailtest, WhatsApp, Banner, Onderhoud. Activiteitenlog schakelbaar. Inclusief licenties, betaalde plugins/thema’s herkenning, onderhouds-takeover en plug-in vervangers. * Author: Pixelsz * Version: 16.7.2…Continue reading
/** * Plugin Name: Pixelsz – Simplicate abonnementen (v2.0) * Description: Zoekt organisatie op basis van website (custom veld “Website”) en toont abonnementen (Hosting/Beheer/Onderhoud en SEO) op tabblad Simplicate. * Author: Pixelsz * Version: 2.0.0 */ if (!defined(‘ABSPATH’)) exit; /**…Continue reading
/** * 1) Register custom AutomateWoo product display template * 2) Sort items alphabetically when that template is used */ /* ——————————————— * 1) Register the new template for {{ order.items }} * ——————————————- */ add_filter( ‘automatewoo/variables/product_templates’, ‘rd_aw_register_product_templates’, 10 );…Continue reading
function rd_align_subscription_next_payment( $workflow ) { if ( ! class_exists( ‘WooCommerce’ ) || ! function_exists( ‘wcs_get_subscription’ ) ) { return; } $subscription = $workflow->data_layer()->get_subscription(); if ( ! $subscription || ! is_a( $subscription, ‘WC_Subscription’ ) ) { wc_get_logger()->error( ‘No valid subscription found…Continue reading
/** * WPCode Snippet: Auto-Create .htaccess in Uploads Folder for Force Download * Description: Creates/updates .htaccess in wp-content/uploads to force .txt file downloads * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; /** * Create or…Continue reading