-
Notifications
You must be signed in to change notification settings - Fork 0
/
wpcliplugins.sh
executable file
·65 lines (64 loc) · 2.08 KB
/
wpcliplugins.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# PLUGINS SECTION
echo "THIS IS THE WORDPRESS PLUGIN BUNDLE INSTALLER"
# https://www.putorius.net/create-multiple-choice-menu-bash.html
PS3='Which plugins do you need: '
pluginBundles=("Development" "Speed&SEO" "Security" "Administrative" "Quit")
select bundle in "${pluginBundles[@]}"; do
case $bundle in
"Development")
echo "You chose $bundle plugin pack!"
# Run installer now
wp plugin install wp-migrate-db query-monitor show-current-template code-snippets better-search-replace wp-reset --activate
echo "
1) Development
2) Speed&SEO
3) Security
4) Administrative
5) Quit
"
;;
"Speed&SEO")
echo "You chose $bundle plugin pack!"
# Run installer now
wp plugin install litespeed-cache swift-performance-lite autoptimize slim-seo seo-by-rank-math
echo "
1) Development
2) Speed&SEO
3) Security
4) Administrative
5) Quit
"
;;
"Security")
echo "You chose $bundle plugin pack!"
# Run installer now
wp plugin install loginizer wp-cerber
echo "
1) Development
2) Speed&SEO
3) Security
4) Administrative
5) Quit
" ;;
"Administrative")
echo "You chose $bundle plugin pack!"
# Run installer now
wp plugin install advanced-custom-fields polylang loco-translate disable-gutenberg redirection duplicate-page disable-gutenberg disable-gutenberg-blocks contact-form-x dashboard-widgets-suite customizer-search user-switching wayfinder
echo "
1) Development
2) Speed&SEO
3) Security
4) Administrative
5) Quit
"
;;
"Quit")
echo "User requested exit"
exit
;;
*) echo "invalid option $REPLY";;
esac
done
# USER FEEDBACK
echo "Enjoy building with wordpress"