Skip to content

Instantly share code, notes, and snippets.

@dwanjuki
Last active October 21, 2025 08:54
Show Gist options
  • Select an option

  • Save dwanjuki/bd2ac86802205f1b86ebe2611fd4759e to your computer and use it in GitHub Desktop.

Select an option

Save dwanjuki/bd2ac86802205f1b86ebe2611fd4759e to your computer and use it in GitHub Desktop.
Change batch size when importing members from CSV via AJAX
<?php
/**
* Change batch size when importing members from CSV via AJAX. Default: 50
*
* 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_pmproiucsv_adjust_ajax_import_batch_size( $number ) {
return 10;
}
add_filter( 'pmprocsv_ajax_import_batch', 'my_pmproiucsv_adjust_ajax_import_batch_size' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment