Skip to content

Commit bfe68b5

Browse files
committed
added database cleanup query
1 parent 1fc4a57 commit bfe68b5

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

wordpress/upgrade/v4.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,18 @@ Please take some time to look into the settings page and adjust them.
9090

9191
The webfonts loader (Google Fonts) has been removed.
9292

93-
Since EnlighterJS v3 is using a native font stack (like bootstrap) it is not longer required do display code. If you want to include custom fonts please do it on your own.
93+
Since EnlighterJS v3 is using a native font stack (like bootstrap) it is not longer required do display code. If you want to include custom fonts please do it on your own.
94+
95+
## Cleanup database ##
96+
97+
The legacy Enlighter versions uses a lot of options which are stored in a seperate database row each. Thanks to the new plugin architecture, all options are stored in a single, serialized object. To cleanup your database, just run the following query to **delete all Enlighter v3 settings**
98+
99+
Note: remember to modify the `wp_` installation prefix to match your environment!
100+
101+
```sql
102+
DELETE FROM `wp_options` WHERE `option_name` LIKE 'enlighter-%' AND `option_name` NOT IN ('enlighter-version', 'enlighter-options', 'enlighter-customizer', 'enlighter-cache-hash');
103+
```
104+
105+
## Missing Features ##
106+
107+
* Preview mode of the theme customizer

0 commit comments

Comments
 (0)