Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created June 2, 2016 15:11
Show Gist options
  • Select an option

  • Save strangerstudios/027c329bd610219e94650d2f629a77b3 to your computer and use it in GitHub Desktop.

Select an option

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.
<?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