-
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_options and wp_{blog_id}_options tables
- wp_blogs table\
// Fetch data from the spreadsheet | |
function fetchDataFromSheet() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
var lastRow = sheet.getLastRow(); | |
var data = []; | |
for (var i = 2; i <= lastRow; i++) { | |
var row = sheet.getRange("A" + i + ":L" + i).getValues()[0]; | |
data.push({ | |
empCode: row[0], |
<?php | |
/** | |
* WooCommerce: Customers can change the quantity & delete it on checkout page. | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
#!/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..."; |
/* Firefox */ | |
@-moz-document url-prefix() { | |
body { | |
color: #f00; | |
} | |
} | |
/* Safari & Chrome */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
body { |
#!/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 |