Skip to content

Commit 582a4b7

Browse files
committed
enhance: consolidate wp_options into serialized arrays
Reduce ~18 individual wp_options rows to 5 by storing settings in serialized arrays (workos_production, workos_staging, workos_global) plus two standalone rows (workos_active_environment, workos_db_version). Adds stellarwp/arrays dependency for Arr::get/set helpers and an Options abstraction layer (Options\Production, Staging, Global_Options) registered as container singletons. Includes v3 schema migration that consolidates existing individual options into the new format.
1 parent 0c2547e commit 582a4b7

14 files changed

Lines changed: 760 additions & 140 deletions

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"require": {
1313
"php": ">=7.4",
1414
"lucatume/di52": "^4.0",
15+
"stellarwp/arrays": "^1.3",
1516
"stellarwp/container-contract": "^1.1"
1617
},
1718
"require-dev": {
@@ -61,6 +62,7 @@
6162
"namespace_prefix": "WorkOS\\Vendor\\",
6263
"packages": [
6364
"lucatume/di52",
65+
"stellarwp/arrays",
6466
"stellarwp/container-contract"
6567
],
6668
"exclude_from_copy": {

composer.lock

Lines changed: 48 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)