-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.sh
55 lines (37 loc) · 1.6 KB
/
debug.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
#!/bin/bash
#
# This script is for testing purpose
cd ~/Desktop/wp-tech/
# --- Stuff tested --------
#cd ~/Desktop/wp/$1
# wp post create --post_type=page --post_title='Accueil' --post_status=publish
# wp post create --post_type=page --post_title='Blog' --post_status=publish
# wp post create --post_type=page --post_title='Contact' --post_status=publish
# wp post create --post_type=page --post_title='Mentions Légales' --post_status=publish
# wp option update show_on_front page
# wp option update page_on_front 15
# wp option update page_for_posts 16
# wp option update category_base /theme
# wp option update tag_base /sujet
# acfkey="b3JkZXJfaWQ9MzI1Mjd8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE0LTA3LTA3IDEzOjMxOjU1"
# acfurl="http://connect.advancedcustomfields.com/index.php?p=pro&a=update&k=${acfkey}"
# wp plugin install ${acfurl}
#wp theme install "https://bitbucket.org/maximebj/wordpress-zero-theme/get/dcbb90b8721a.zip" --activate
#git clone git@bitbucket.org:maximebj/wordpress-zero-theme.git
# cd wp-content/themes/
# git clone git@bitbucket.org:smoothiecreative/wordpress-base-theme.git
# wp theme activate wordpress-base-theme
#subl 'wp-content/themes/'
# cd wp-content/themes/
# #git clone git@bitbucket.org:smoothiecreative/wordpress-base-theme.git
# cd prout
# open .
# echo "Arg 1 : $1"
# echo "Arg 2 : $2"
# mv wordpress-base-theme 'prout'
# wp theme activate prout
#git clone git@bitbucket.org:smoothiecreative/wordpress-base-theme.git
# wp menu item add-post menu-principal 3
# wp menu item add-post menu-principal 4
# wp menu item add-post menu-principal 5
# wp menu location assign menu-principal main-menu