Description
Filter the number of posts processed in a batch of the Update videos tool. Default 50 — the most videos YouTube returns in one request — or 5 when featured images are updated. Available since Video Hub 2.3.0.
Parameters
- $size
- (int)(required) Number of posts.
- $options
- (array)(required) Update options, with the key
fieldslisting the optional fields updated (title,description,image,tags).
Examples
Process 25 posts per batch on a slow host.
add_filter( 'cbc_video_update_batch_size', function( $size, $options ) {
return min( $size, 25 );
}, 10, 2 );