WooCommerce Code Reference

WC_Background_Emailer extends WC_Background_Process
in package

WC_Background_Emailer Class.

Table of Contents

__construct()  : mixed
Initiate new background process.
delete_all_batches()  : WC_Background_Process
Delete all batches.
dispatch_queue()  : mixed
Save and run queue.
kill_process()  : mixed
Kill process.
schedule_cron_healthcheck()  : array
Schedule cron healthcheck.
batch_limit_exceeded()  : bool
See if the batch limit has been exceeded.
close_http_connection()  : mixed
Finishes replying to the client, but keeps the process running for further (async) code execution.
get_batch()  : stdClass
Get batch.
get_memory_limit()  : int
Get memory limit.
get_post_args()  : array
Get post args
handle()  : mixed
Handle
is_queue_empty()  : bool
Is queue empty.
schedule_event()  : mixed
Schedule fallback event.
task()  : mixed
Task

Methods

handle()

Handle

protected handle() : mixed

Pass each queue item to the task handler, while remaining within server memory and time limit constraints.

Return values
mixed

task()

Task

protected task(array $callback) : mixed

Override this method to perform any actions required on each queue item. Return the modified item for further processing in the next pass through. Or, return false to remove the item from the queue.

Parameters
$callback : array

Update callback function.

Return values
mixed