Skip to content

Instantly share code, notes, and snippets.

@suth
Created February 21, 2014 20:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suth/9142986 to your computer and use it in GitHub Desktop.
Save suth/9142986 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Extend HTTP Request Timeout
Plugin URI: https://refactored.co
Description: Extends the default timeout length for the WordPress HTTP API
Author: Sutherland Boswell
Author URI: http://sutherlandboswell.com
Version: 1.0
License: GPL2
*/
function refactored_extend_http_request_timeout( $timeout ) {
return 30;
}
add_filter( 'http_request_timeout', 'refactored_extend_http_request_timeout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment