Location: everywhere
Custom AutomateWoo Function – Push Subscription Meta to CRM via WP Fusion
if ( ! defined( ‘ABSPATH’ ) ) { exit; } function rd_wpf_resync_subscription_from_automatewoo( $workflow ) { if ( ! function_exists( ‘wp_fusion’ ) ) { return; } if ( ! is_object( $workflow ) || ! method_exists( $workflow, ‘data_layer’ ) ) { return;…Continue reading
VitiligoMart AI Discovery Stack
/** * VitiligoMart AI Discovery Stack * * 1. Appends AI bot Allow directives to robots.txt * 2. Serves a curated /llms.txt that overrides Rank Math’s auto-generated version * * Update bot list and llms.txt content directly in this snippet.…Continue reading
test CSS snippet
.home{ color:red!important; }Continue reading
Paramount Site
add_shortcode(‘paramount_site’, function () { ob_start(); ?> PARAMOUNT CONTACT PARTNERS Revenue Appointments Contact Let’s Talk → DTC Retention · Payment Recovery · Reactivation We Don’t RunCall CentersWe Build Revenue Engines. Most companies lose money in the exact place they should be…Continue reading
Tiered Affiliate Rates — Per-Group Tier Structures
add_filter( ‘affwp_get_affiliate_rate’, function( $rate, $affiliate_id, $type ) { // Respect individual rates — if the affiliate has one set manually, skip group tiers. $affiliate_rate = affiliate_wp()->affiliates->get_column( ‘rate’, $affiliate_id ); if ( ! empty( $affiliate_rate ) ) { return $rate; }…Continue reading
Rest API Custom Field
add_action( ‘init’, function() { register_meta( ‘post’, ‘_wpai_unique_key’, array( ‘type’ => ‘string’, // ‘string’, ‘number’, ‘boolean’, ‘integer’, ‘array’, or ‘object’ ‘single’ => true, ‘show_in_rest’ => true, // Required to show in API ) ); });Continue reading
Untitled Snippet
Untitled Snippet
WWPP – Customize the admin “New Order” email subject for wholesalers v1.1
/** * Customize the Admin “New Order” email subject using Wholesale Prices Premium logic */ add_filter( ‘woocommerce_email_subject_new_order’, function( $subject, $order ) { if ( ! $order ) { return $subject; } // Access the Wholesale Prices Premium global object global…Continue reading