WooCommerce Code Reference

WC_Background_Process extends WP_Background_Process
in package

WC_Background_Process class.

Table of Contents

delete_all_batches()  : WC_Background_Process
Delete all batches.
kill_process()  : mixed
Kill process.
schedule_cron_healthcheck()  : array<string|int, mixed>
Schedule cron healthcheck.
batch_limit_exceeded()  : bool
See if the batch limit has been exceeded.
get_batch()  : stdClass
Get batch.
get_memory_limit()  : int
Get memory limit.
handle()  : mixed
Handle.
is_queue_empty()  : bool
Is queue empty.

Methods

schedule_cron_healthcheck()

Schedule cron healthcheck.

public schedule_cron_healthcheck(array<string|int, mixed> $schedules) : array<string|int, mixed>
Parameters
$schedules : array<string|int, mixed>

Schedules.

Return values
array<string|int, mixed>