Auto_Thumbnail_Handler implements Registerable, Standard_Service

Handler for general document expiry hooks

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

$plugin  : mixed
__construct()  : mixed
Constructor.
admin_notices()  : mixed
Run any admin notices.
delete_auto_thumbnail()  : mixed
Delete auto thumbnail meta when the thumbnail is manually updated via Edit Document
handle_dismissed_info_notice()  : mixed
Additional hook into the AJAX dismiss action to alter our task runner option.
handle_remove_thumbnail()  : mixed
Handle disabled the auto thumbnail if the user has manually removed the thumbnail.
in_progress_notice()  : mixed
Display the in progress notice.
info_action_notice()  : mixed
Display the info action notice.
register()  : mixed
{@inheritdoc}
start_task()  : mixed
Start the auto thumbnail task.
turn_off_on_fresh_install()  : mixed
If we don't have any eligible documents and the task is not running, then turn off the task.
batch_process_has_started()  : bool
Batch process has started.
get_admin_notice_screens()  : array<string|int, string>
Get the screens to show the notices on.
has_eligible_documents()  : bool
Determine if we have any eligible documents.

Properties

Methods

admin_notices()

Run any admin notices.

public admin_notices() : mixed

We hook into the admin_init action to use the Notice_Provider.

Return values
mixed

delete_auto_thumbnail()

Delete auto thumbnail meta when the thumbnail is manually updated via Edit Document

public delete_auto_thumbnail(int $post_id) : mixed
Parameters
$post_id : int
Return values
mixed

handle_dismissed_info_notice()

Additional hook into the AJAX dismiss action to alter our task runner option.

public handle_dismissed_info_notice() : mixed
Return values
mixed

handle_remove_thumbnail()

Handle disabled the auto thumbnail if the user has manually removed the thumbnail.

public handle_remove_thumbnail(int $post_id) : mixed
Parameters
$post_id : int
Return values
mixed

in_progress_notice()

Display the in progress notice.

public in_progress_notice() : mixed
Return values
mixed

info_action_notice()

Display the info action notice.

public info_action_notice() : mixed
Return values
mixed

start_task()

Start the auto thumbnail task.

public start_task() : mixed
Return values
mixed

turn_off_on_fresh_install()

If we don't have any eligible documents and the task is not running, then turn off the task.

public turn_off_on_fresh_install() : mixed
Return values
mixed

batch_process_has_started()

Batch process has started.

private batch_process_has_started() : bool
Return values
bool

get_admin_notice_screens()

Get the screens to show the notices on.

private get_admin_notice_screens() : array<string|int, string>
Return values
array<string|int, string>

has_eligible_documents()

Determine if we have any eligible documents.

private has_eligible_documents() : bool
Return values
bool

Search results