get_batch_size(); $offset = ( $batch_number - 1 ) * $batch_size; $query_args = array( 'number' => $batch_size, 'offset' => $offset, 'status' => 'approve', 'post_type' => 'product', 'comment_type' => 'review', ); return FeedUploadUtils::get_ratings_and_reviews_data( $query_args ); } /** * Get the job's batch size. * * @return int * @since 3.5.0 */ protected function get_batch_size(): int { return 100; } }