Created
October 2, 2024 12:16
-
-
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
This file contains 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 | |
/** | |
* 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