add_filter( 'http_request_timeout', function( $timeout ) { return 30; // Sets timeout to 30 seconds });