Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vanbo/ff66f74813a696deb18ed39757b82194 to your computer and use it in GitHub Desktop.

Select an option

Save vanbo/ff66f74813a696deb18ed39757b82194 to your computer and use it in GitHub Desktop.
WooCommerce Paytrace change request timeout
/**
* NOTE: Add the code to the 'theme/functions.php" file
*/
add_filter( 'wc_paytrace_request_timeout', 'vanbo_paytrace_edit_timeout', 10 );
/**
* @param int $timeout The current seconds
*
* @return int Return the seconds you want the timeout to be
*/
function vanbo_paytrace_edit_timeout($timeout){
return 60;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment