File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ wordpress-importer
36
36
ACTIVATE_THEMES='
37
37
vocabulary-theme
38
38
'
39
+ REMOVE_THEMES='
40
+ twentytwentyone
41
+ twentytwentytwo
42
+ '
39
43
WEB_WP_DIR=/var/www/html
40
44
WEB_WP_URL=http://localhost:8080
41
45
@@ -136,6 +140,23 @@ install_wordpress() {
136
140
}
137
141
138
142
143
+ remove_themes () {
144
+ local _theme
145
+ header ' Remove extraneous WordPress themes'
146
+ for _theme in ${REMOVE_THEMES}
147
+ do
148
+ if ! wpcli --no-color --quiet theme is-installed " ${_theme} " \
149
+ > /dev/null
150
+ then
151
+ echo " no-op: ${_theme} is not installed"
152
+ else
153
+ wpcli theme delete " ${_theme} "
154
+ fi
155
+ done
156
+ echo
157
+ }
158
+
159
+
139
160
utils_info () {
140
161
header ' Utilities info'
141
162
docker compose run --rm composer --version 2> /dev/null
@@ -181,6 +202,7 @@ wpcli() {
181
202
utils_info
182
203
composer_install
183
204
install_wordpress
205
+ remove_themes
184
206
activate_plugins
185
207
activate_themes
186
208
enable_permalinks
You can’t perform that action at this time.
0 commit comments