Celebrate WordCamp Europe - 30% OFF! Use coupon WC30 - View Details

wsf_api_call_timeout

Description

The wsf_api_call_timeout filter allows you to modify the timeout in seconds that is used when making any external API requests. This setting applies to the Webhook action as well as integration add-ons.

Usage

add_filter( 'wsf_api_call_timeout', 'my_hook_function', 10, 1 );

Parameters

  1. $timeout Integer
    Timeout in seconds.
    Default value: 15

Example

// Callback function for the wsf_api_call_timeout filter hook
function my_hook_function( $timeout ) {
	
	// Your code here ...

	// Return value
	return $timeout;
}

// Add a callback function for the wsf_api_call_timeout filter hook
add_filter( 'wsf_api_call_timeout', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/includes/class-ws-form-common.php