Created
June 2, 2016 15:11
-
-
Save strangerstudios/027c329bd610219e94650d2f629a77b3 to your computer and use it in GitHub Desktop.
Tell PMPro to wait 15 seconds instead of 5 on AJAX calls. Helps with slow hosts.
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
| <?php | |
| /* | |
| Add this code to a custom plugin or your active theme's functions.php. | |
| */ | |
| //wait 15 seconds for PMPro AJAX Calls | |
| function my_pmpro_ajax_timeout($timeout) { | |
| return 15000; | |
| } | |
| add_filter('pmpro_ajax_timeout', 'my_pmpro_ajax_timeout'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment