Description
Filter the base delay, in minutes, before an automatic import that returned a YouTube error is tried again. The delay grows with the number of consecutive errors (errors x base minutes) and is cleared after a successful import. Default 5. Available since Video Hub 2.0.
Parameters
- $minutes
- (int)(required) Base delay in minutes.
- $playlist_id
- (int)(required) Post ID of the automatic import.
Examples
Wait 15, 30, 45 minutes and so on.
add_filter( 'cbc_yt_error_backoff_minutes', function( $minutes, $playlist_id ) {
return 15;
}, 10, 2 );