abstract class Upgrader_Schema

A class to control the basic functionality for an Upgrader Schema (super descriptive, ty me).

Properties

protected array $actions

Methods

get_version()

Abstract function to return the version coresponding to the upgrade schema.

array
get_actions()

Return the Schema actions.

bool
add_action(mixed $action, int $priority = 10)

Add an action to the Schema.

Details

at line 33
abstract get_version()

Abstract function to return the version coresponding to the upgrade schema.

at line 40
final array get_actions()

Return the Schema actions.

Return Value

array

The Schema actions.

at line 50
final bool add_action(mixed $action, int $priority = 10)

Add an action to the Schema.

Parameters

mixed $action

A callable argument.

int $priority

The priority of the action. Default: 10.

Return Value

bool

Whether or not the action was added.