Description

Filter cvm_image_request_timeout allows for setting the time in seconds, before the connection is dropped and an error is returned when making a request to import a video image from Vimeo. The default for this value is 5 seconds.

Use this filter to increase the connection timeout if you experience repeated timeout errors when you try to import Vimeo images for video posts.

Parameters

$timeout
(integer)(required) Request timeout before the connection is dropped.

Default:10

Examples

Increase Vimeo image import request timeout to 15 seconds.

function increase_request_timeout( $timeout ){
    return 15;
}
add_filter( 'cvm_image_request_timeout', 'increase_request_timeout' );

Related