Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Control batch size for the address book migration process.
This filter allows to adjust how many users are processed per request during address book migration operations to optimize performance and prevent timeouts.
Parameters #
$users_per_request(int) Number of users to process per request. Defaults to500.
Examples #
/**
* Reduce batch size for better performance on slower servers
*/
function custom_migration_batch_size( $users_per_request ) {
return 100; // Process 100 users per request instead of default 500
}
add_filter( 'fc_pro_address_book_migration_users_per_request', 'custom_migration_batch_size', 10 );
