Here are the basic steps to migrate
-
Modify
wp-config.php
and.htaccess
files. -
Modify the follwing database tables.
-
wp_options and wp_{blog_id}_options tables
-- Change the fieldssite_url
andhome
. -
wp_blogs table\
-
#!/bin/bash | |
#Define styls | |
RESET_STYLE=$(tput sgr0) | |
RED_COLOR=$(tput setaf 1) | |
GREEN_COLOR=$(tput setaf 2) | |
YELLO_COLOR=$(tput setaf 3) | |
BOLD=$(tput bold) | |
#Get the current OS name |
Modify wp-config.php
and .htaccess
files.
Modify the follwing database tables.
wp_options and wp_{blog_id}_options tables
-- Change the fields site_url
and home
.
wp_blogs table\
/* Firefox */ | |
@-moz-document url-prefix() { | |
body { | |
color: #f00; | |
} | |
} | |
/* Safari & Chrome */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
body { |
#!/bin/bash | |
#require: uglifyjs and uglifycss npm package | |
# https://www.npmjs.com/package/uglify-js | |
# https://www.npmjs.com/package/uglifycss | |
#Start JS minification | |
read -p 'Enter the unminified JS directory absolute path: ' JS_DIR | |
echo "Creating the minified directory..."; |
<?php | |
/** | |
* WooCommerce: Customers can change the quantity & delete it on checkout page. | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |