This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkup() { | |
install=$(pwd | cut -d / -f 6) | |
environment=$(pwd | cut -d / -f 5) | |
echo "Install: ${install}" | egrep --color ".*" | |
#home and siteurl | |
wp db query "SELECT option_name, option_value FROM $(wp db tables | grep options) WHERE option_name='home' OR option_name='siteurl'" | |
echo | |
echo "Theme Information:" | egrep --color ".*" | |
wp theme status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interconnectit() { | |
if [[ -z $1 ]] || [[ $1 == "help" ]]; then | |
echo "usage: interconnectit search_for replace_with your_email" | |
echo "Email is optional- if you provide it, an email will be sent to you once the search and replace finishes." | |
echo "Run this from the root of the WordPress you want the search and replace done on." | |
else | |
#acquire and prep search and replace script | |
wget https://github.com/interconnectit/Search-Replace-DB/archive/master.zip | |
unzip master.zip && rm master.zip | |
NewerOlder