Updater implements Registerable, Service

This class handles updating the DB

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Service
Marker interface to denote a service.

Table of Contents

dismiss_success_notice_action()  : mixed
Handles the dismiss action for the upgrade success admin notice
register()  : void
Register hooks and filters.
update_action()  : mixed
Handles the update action for the admin notice
update_notices()  : mixed
If we need to update the database, include a message with the DB update button.
update_150_variation_lead_time()  : bool
Converts all _wclt_lead_time keys on variations to _wclt_variation_lead_time

Methods

dismiss_success_notice_action()

Handles the dismiss action for the upgrade success admin notice

public dismiss_success_notice_action() : mixed
Return values
mixed

register()

Register hooks and filters.

public register() : void
Return values
void

update_action()

Handles the update action for the admin notice

public update_action() : mixed
Return values
mixed

update_notices()

If we need to update the database, include a message with the DB update button.

public update_notices() : mixed
Return values
mixed

update_150_variation_lead_time()

Converts all _wclt_lead_time keys on variations to _wclt_variation_lead_time

private update_150_variation_lead_time() : bool
Return values
bool

Whether the upgrade was processed successfully

Search results