Created
February 4, 2025 06:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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