Created
May 13, 2016 14:48
-
-
Save cliffordp/35dbf3ca36c57949228bf6ded23d62bf to your computer and use it in GitHub Desktop.
Override iCal Importer's default timeout (5 seconds) for feed parsing
This file contains 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 | |
/** | |
* From https://gist.github.com/cliffordp/35dbf3ca36c57949228bf6ded23d62bf | |
* | |
* Override iCal Importer's default timeout (5 seconds) for feed parsing | |
**/ | |
add_filter( 'tribe_events_ical_importer_connection_timeout', 'cliff_ical_importer_custom_timeout_in_seconds' ); | |
function cliff_ical_importer_custom_timeout_in_seconds() { | |
return 10; // integer number of seconds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment