Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created February 4, 2025 06:10
Show Gist options
  • Save andrewlimaza/e1b2cfe29731510e8182603307bab143 to your computer and use it in GitHub Desktop.
Save andrewlimaza/e1b2cfe29731510e8182603307bab143 to your computer and use it in GitHub Desktop.
Adjust the number of member records sent to Zapier from Paid Memberships Pro.
<?php
/**
* Adjust the number of records sent within a single Zapier trigger for Paid Memberships Pro.
* Default is 1 per run.
* To add this code to your WordPress site, please follow this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_trigger_recent_members_limit( $limit ) {
return 20;
}
add_filter( 'pmpro_trigger_recent_members_limit', 'my_pmpro_trigger_recent_members_limit', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment