Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Created May 13, 2016 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/35dbf3ca36c57949228bf6ded23d62bf to your computer and use it in GitHub Desktop.
Save cliffordp/35dbf3ca36c57949228bf6ded23d62bf to your computer and use it in GitHub Desktop.
Override iCal Importer's default timeout (5 seconds) for feed parsing
<?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