Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| 'use strict'; | |
| const autoprefixer = require('autoprefixer'); | |
| const browsers = require('@wordpress/browserslist-config'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| module.exports = function (env, options) { |
| Generate the key: ssh-keygen | |
| Point to the directory with your key pair | |
| cd ~/.ssh | |
| locate the pub key for ssh | |
| ssh-copy-id -i [key_name].pub USERNAME@SERVERT_IP | |
| Then |
| /** | |
| * Auto Complete all WooCommerce orders. | |
| */ | |
| add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); | |
| function custom_woocommerce_auto_complete_order( $order_id ) { | |
| if ( ! $order_id ) { | |
| return; | |
| } | |
| $order = wc_get_order( $order_id ); |
| <?php | |
| class order_status_customisation { | |
| /** | |
| * Setup actions | |
| */ | |
| static function setup() { | |
| add_action( 'init', __CLASS__ . '::adding_additional_order_statuses', 10 ); | |
| add_filter( 'wc_order_statuses', __CLASS__ . '::add_awaiting_shipment_to_order_statuses', 10, 1 ); |