Auto_Thumbnail_Task implements Schedulable, Registerable, Standard_Service
Schedule a cron job to set auto thumbnails for documents
Tags
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
$event_hook
private
mixed
$event_hook
= 'dlp_batch_auto_thumbnail'
Methods
register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —run()
Run the auto thumbnail task.
public
run() : mixed
Will schedule another single event if there are still documents to process.
Return values
mixed —schedule()
{@inheritdoc}
public
schedule() : mixed
Return values
mixed —unschedule()
{@inheritdoc}
public
unschedule() : mixed
Return values
mixed —get_documents_batch()
Get the documents to process
protected
get_documents_batch() : array<string|int, WP_Post>