Code-Snippets-Functions/Execute a function on a child site/Imagify/curl-fix.txt

6 lines
201 B
Text

declare( strict_types=1 );
add_action( 'http_api_curl', function( $handle ) {
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 10000 );
curl_setopt( $handle, CURLOPT_TIMEOUT, 10000 );
}, 1000 );