Update_Functions
Update functions to be used on plugin updates.
Tags
Table of Contents
- $updates : mixed
- update_1_11_0_delete_all_dlp_transients() : mixed
- Delete all Document Library Pro transients.
- update_2_0_0_migrate_settings() : mixed
- Migrate settings from v1 to v2
- handle_fresh_v2_install() : bool
- Handle a fresh v2 install.
Properties
$updates
public
static mixed
$updates
= ['1.11.0' => ['update_1_11_0_delete_all_dlp_transients'], '2.0.0' => ['update_2_0_0_migrate_settings']]
Tags
Methods
update_1_11_0_delete_all_dlp_transients()
Delete all Document Library Pro transients.
public
static update_1_11_0_delete_all_dlp_transients() : mixed
Tags
Return values
mixed —update_2_0_0_migrate_settings()
Migrate settings from v1 to v2
public
static update_2_0_0_migrate_settings() : mixed
Tags
Return values
mixed —handle_fresh_v2_install()
Handle a fresh v2 install.
private
static handle_fresh_v2_install() : bool
This creates the legacy options keys for PTP core compatibility.