Auto_Thumbnail_Task implements Schedulable, Registerable, Standard_Service

Schedule a cron job to set auto thumbnails for documents

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Schedulable
Registerable
Standard_Service

Table of Contents

$event_hook  : mixed
register()  : mixed
{@inheritdoc}
run()  : mixed
Run the auto thumbnail task.
schedule()  : mixed
{@inheritdoc}
unschedule()  : mixed
{@inheritdoc}
get_documents_batch()  : array<string|int, WP_Post>
Get the documents to process

Properties

Methods

run()

Run the auto thumbnail task.

public run() : mixed

Will schedule another single event if there are still documents to process.

Return values
mixed

get_documents_batch()

Get the documents to process

protected get_documents_batch() : array<string|int, WP_Post>
Return values
array<string|int, WP_Post>

Search results