WooCommerce Code Reference

DeprecatedOptions
in package

DeprecatedOptions class.

Table of Contents

get_deprecated_options()  : mixed
Get the values from the correct source when attempting to retrieve deprecated options.
update_deprecated_options()  : mixed
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(mixed $pre_option, string $option) : mixed
Parameters
$pre_option : mixed

Pre option value.

$option : string

Option name.

Return values
mixed

update_deprecated_options()

Updates the new option names when deprecated options are updated.

public static update_deprecated_options(mixed $value, mixed $old_value, string $option) : mixed

This is a temporary fallback until we can fully remove the old task list components.

Parameters
$value : mixed

New value.

$old_value : mixed

Old value.

$option : string

Option name.

Return values
mixed