One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Logging at level: debug | |
Configuration file: /Users/paul/paulfioravanti.github.io/_config.yml | |
GitHub Pages: github-pages v192 | |
GitHub Pages: jekyll v3.7.4 | |
Requiring: jekyll-github-metadata | |
Dotenv not found. Skipping | |
Requiring: jekyll-seo-tag | |
Requiring: jekyll-feed | |
Requiring: jekyll-gist | |
Requiring: jekyll-include-cache |
<?php | |
/** | |
* @snippet WooCommerce - Fortnox plugin by Redlight Media - Add Company Name to Fortnox order Name | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 3.3.5 | |
*/ | |
function redlight_fortnox_order_companyname( $orderData, $order_id) { | |
$order = new WC_Order($order_id); | |
if(!empty($order->get_billing_company())){ | |
$orderData['Order']['CustomerName'] = $order->get_billing_company(); |
ubnt
ssh [email protected]
<?php | |
/** | |
* @snippet WooCommerce - Fortnox plugin by Redlight Media - Add Company Name to Fortnox order Name | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 3.3.5 | |
*/ | |
function redlight_fortnox_order_companyname( $orderData, $order_id) { | |
$order = new WC_Order($order_id); | |
if(!empty($order->get_billing_company())){ | |
$orderData['Order']['CustomerName'] = $order->get_billing_company().": "; |
<?php | |
/** | |
* @snippet WooCommerce - Fortnox plugin by Redlight Media - Set InvoiceType depending on payment method via functions.php | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 3.2.5 | |
*/ | |
function redlight_fortnox_payment_method_invoicetype($invoice, $order_id) { | |
$order = wc_get_order($order_id); | |
$order_payment_method = $order->get_payment_method(); | |
switch( $order_payment_method ) { |
This is based on a guide on the Ubnt forums.
Log into your Edgerouter and run the following - sudo -i && vi /config/user-data/update-adblock-dnsmasq.sh
This will switch you to the root user and open up vi
.
#!/bin/bash
$mail->Host = "HOSTINGER_SMTP_HOST_HERE"; | |
//Set the SMTP port number - likely to be 25, 465 or 587 | |
$mail->Port = HOSTINGER_SMTP_PORT_HERE; | |
//Whether to use SMTP authentication | |
$mail->SMTPAuth = true; | |
//Username to use for SMTP authentication | |
$mail->Username = "YOUR_SMTP_USERNAME"; | |
//Password to use for SMTP authentication | |
$mail->Password = "YOUR_SMTP_PASSWORD"; | |
//Set who the message is to be sent from |
<?php | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = "[email protected]"; | |
$to = "[email protected]"; |
/** | |
* Block external WordPress API request | |
*/ | |
function wp_api_block_request($pre, $args, $url) | |
{ | |
if (strpos($url, 'api.wordpress.org')) { | |
return true; | |
} else { | |
return $pre; | |
} |