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
- update_3_1_0_migrate_settings() : mixed
- Migrate settings from v3.0.3 to v3.1.0
- update_3_2_0_add_block_pattern_layouts() : mixed
- Add block pattern layouts.
- update_4_0_0_enable_legacy_frontend_for_upgrades() : mixed
- Preserve legacy DataTables frontend for existing installs upgrading to v4.
- update_4_0_0_migrate_grid_control_colors() : mixed
- Migrate grid control colors that previously inherited the grid body color.
- 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'], '3.1.0' => ['update_3_1_0_migrate_settings'], '3.2.0' => ['update_3_2_0_add_block_pattern_layouts'], '4.0.0' => ['update_4_0_0_enable_legacy_frontend_for_upgrades', 'update_4_0_0_migrate_grid_control_colors']]
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 —update_3_1_0_migrate_settings()
Migrate settings from v3.0.3 to v3.1.0
public
static update_3_1_0_migrate_settings() : mixed
Tags
Return values
mixed —update_3_2_0_add_block_pattern_layouts()
Add block pattern layouts.
public
static update_3_2_0_add_block_pattern_layouts() : mixed
Tags
Return values
mixed —update_4_0_0_enable_legacy_frontend_for_upgrades()
Preserve legacy DataTables frontend for existing installs upgrading to v4.
public
static update_4_0_0_enable_legacy_frontend_for_upgrades() : mixed
Tags
Return values
mixed —update_4_0_0_migrate_grid_control_colors()
Migrate grid control colors that previously inherited the grid body color.
public
static update_4_0_0_migrate_grid_control_colors() : 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.