Skip to content

Instantly share code, notes, and snippets.

@dwanjuki
Created October 2, 2024 12:16
Show Gist options
  • Save dwanjuki/fbac4498a427ab62553b3ec0e57e9c37 to your computer and use it in GitHub Desktop.
Save dwanjuki/fbac4498a427ab62553b3ec0e57e9c37 to your computer and use it in GitHub Desktop.
Set maximum number of records to process at a time for Members List Export CSV
<?php
/**
* Set max number of records to process at a time for Members List Export CSV
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_set_max_user_per_export_loop( $max_users_per_loop ) {
return 6000;
}
add_filter( 'pmpro_set_max_user_per_export_loop', 'my_pmpro_set_max_user_per_export_loop' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment