gpeu_connection_threshold

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Increase the number of concurrent connections to 10.
  5. Since

Description

Filter the number of maximum concurrent connections that can be made to the server while sending emails.

Usage

add_filter( 'gpeu_connection_threshold', 'my_custom_function' );

Parameters

  • conn_threshold int

    Number of concurrent connections (default: 5)

Examples

Increase the number of concurrent connections to 10.

<?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;
} );

Since

This filter is available since Gravity Forms Email Users 1.3.10.