DeprecatedOptions
in package
DeprecatedOptions class.
Table of Contents
- get_deprecated_options() : string
- Get the values from the correct source when attempting to retrieve deprecated options.
- init() : mixed
- Initialize.
- update_deprecated_options() : string
- Updates the new option names when deprecated options are updated.
Methods
get_deprecated_options()
Get the values from the correct source when attempting to retrieve deprecated options.
public
static get_deprecated_options(string $pre_option, string $option) : string
Parameters
- $pre_option : string
-
Pre option value.
- $option : string
-
Option name.
Return values
string —init()
Initialize.
public
static init() : mixed
Return values
mixed —update_deprecated_options()
Updates the new option names when deprecated options are updated.
public
static update_deprecated_options(string $value, string $old_value, string $option) : string
This is a temporary fallback until we can fully remove the old task list components.
Parameters
- $value : string
-
New value.
- $old_value : string
-
Old value.
- $option : string
-
Option name.