Increase the Number of Concurrent Connections

The default number of concurrent connections is 5. Use this filter to increase the that number. Emails will be sent faster but it will create an additional load on your server.

Code

Filename: gpeu-increase-number-of-concurrent-connections.php

<?php
/**
 * Gravity Perks // Email Users // Increase the Number of Concurrent Connections
 * https://gravitywiz.com/documentation/gravity-forms-email-users/
 *
 * The default number of concurrent connections is `5`. Use this filter to increase the that number.
 * Emails will be sent faster but it will create an additional load on your server.
 */
add_filter('gpeu_connection_threshold', function( $conn_threshold ) {
	// Update "10" the desired number of concurrent connections.
	return 10;
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.