Skip to main content

Scope the Donor Wall to Stripe Donations Only

Free

Restrict a public donor wall to Stripe-only donations, hiding link-mode reference rows that were logged manually, on a per-show basis.

Code

<?php
add_filter( 'benecaster_donor_wall_query_args', function ( array $args, int $show_id ): array {
    // 42 = the show whose wall should be Stripe-only. All other shows keep
    // the default all-platforms behavior.
    if ( 42 !== $show_id ) {
        return $args;
    }
    $args['platform'] = 'stripe';
    return $args;
}, 10, 2 );

View on GitHub →

Hooks Used

  • benecaster-donor-wall-query-args