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
| add_filter('locale', 'localize_backend'); | |
| function localize_backend( $locale ) { | |
| // set langauge if user is in admin area | |
| if( defined( 'WP_ADMIN' ) || ( isset( $_REQUEST['pwd'] ) && isset( $_REQUEST['kau-boys_backend_localization_language'] ) ) ){ | |
| // ajax call from frontend | |
| if ( 'admin-ajax.php' == basename( $_SERVER[ 'SCRIPT_FILENAME' ] ) && strpos( admin_url(), $_SERVER[ 'HTTP_REFERER' ] ) === false ) { | |
| // if lang request param was set, change locale for AJAX response, else, don't overwrite locale (use frontend locale) | |
| if ( isset($_COOKIE['lang'] ) ) { |
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
| UPDATE `wp_options` SET `option_value`='specific' WHERE option_name = 'woocommerce_ship_to_countries'; | |
| UPDATE `wp_options` SET `option_value`='a:28:{i:0;s:2:"AT";i:1;s:2:"BE";i:2;s:2:"HR";i:3;s:2:"BG";i:4;s:2:"CY";i:5;s:2:"CZ";i:6;s:2:"DK";i:7;s:2:"EE";i:8;s:2:"FI";i:9;s:2:"FR";i:10;s:2:"DE";i:11;s:2:"GR";i:12;s:2:"HU";i:13;s:2:"IE";i:14;s:2:"IT";i:15;s:2:"LV";i:16;s:2:"LT";i:17;s:2:"LU";i:18;s:2:"MT";i:19;s:2:"NL";i:20;s:2:"PL";i:21;s:2:"PT";i:22;s:2:"RO";i:23;s:2:"SK";i:24;s:2:"SI";i:25;s:2:"ES";i:26;s:2:"SE";i:27;s:2:"GB";}' WHERE option_name = 'woocommerce_specific_ship_to_countries'; |
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
| git rm --cached -r . | |
| git add . | |
| git commit -m 'removed all and added with git ignore' | |
| git push origin master |
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
| sudo apt-get install php-mysql | |
| sudo /etc/init.d/mysql restart | |
| sudo php -S localhost:80 | |
| mysql -h localhost -P 3306 -u root -p | |
| CREATE DATABASE menagerie; |
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
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
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
| sudo apt-get install php7.2-gd php7.2-mysql php7.2-dom php7.2-cli php7.2-json php7.2-common php7.2-mbstring php7.2-opcache php7.2-readline |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| AuthType Basic | |
| AuthName "BETA Site" | |
| AuthUserFile "/var/www/vhosts/rederp.ch/html/_beta.rederp.ch/.htpasswd" | |
| Require valid-user | |
| </IfModule> | |
| wk:$apr1$R.JuDQ11$V6oReBCgR7Jc52.JJG6n9/ |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| AuthType Basic | |
| AuthName "BETA Site" | |
| AuthUserFile "/var/www/vhosts/rederp.ch/html/_beta.rederp.ch/.htpasswd" | |
| Require valid-user | |
| </IfModule> | |
| wk:$apr1$R.JuDQ11$V6oReBCgR7Jc52.JJG6n9/ |
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
| // Enable WP_DEBUG mode | |
| define( 'WP_DEBUG', true ); | |
| // Enable Debug logging to the /wp-content/debug.log file | |
| define( 'WP_DEBUG_LOG', true ); | |
| // Disable display of errors and warnings | |
| define( 'WP_DEBUG_DISPLAY', false ); |
OlderNewer