Location: everywhere
Customize the error message shown on the WPForms Password Reset form when the reset link is invalid or expired
/** * Customize the error message shown on the WPForms Password Reset form * when the reset link is invalid or expired. * * @link https://wpforms.com/developers/change-validation-messages-for-user-registration-addon/ * * @param string $message The default error message. * @return string */ function…Continue reading
AffiliateWP Network Stats Shortcode
/** * Helper: sum product-only sales (excludes shipping) for one affiliate. * Filters to WooCommerce context so the dataset matches the SALES table. */ function affwp_product_only_sales( $affiliate_id, $status_array ) { $total = 0.0; $referrals = affiliate_wp()->referrals->get_referrals( array( ‘affiliate_id’ => absint(…Continue reading
Fix coupon displaying 0% in the affiliate dashboard
add_filter( ‘get_post_metadata’, function( $value, $object_id, $meta_key, $single ) { static $running = false; if ( $running ) { return $value; } $intercepted = array( ‘_mepr_coupons_discount_amount’, ‘_mepr_coupons_discount_type’ ); if ( ! in_array( $meta_key, $intercepted, true ) ) { return $value; }…Continue reading
Ninja Table SQL Ajax Issue – must run everywhere
add_filter(‘ninja_table_rendering_table_vars’, function ($tableVars, $tableId) { if (empty($tableVars[‘provider’]) || $tableVars[‘provider’] !== ‘raw_sql’) { return $tableVars; } if (empty($tableVars[‘render_type’]) || $tableVars[‘render_type’] !== ‘ajax_table’) { return $tableVars; } $perChunk = function_exists(‘ninjaTablePerChunk’) ? (int) ninjaTablePerChunk($tableId) : 3000; if ($perChunk < 1) { return $tableVars;…Continue reading
Remove categories
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