Created
May 4, 2020 17:43
-
-
Save vanbo/ff66f74813a696deb18ed39757b82194 to your computer and use it in GitHub Desktop.
WooCommerce Paytrace change request timeout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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