A code example from the CSS Animations Pocket Guide from Five Simple Steps (http://www.fivesimplesteps.com/products/css-animations) Character animation by the awesome Scott Benson (https://vimeo.com/bombsfall)
A code example from the CSS Animations Pocket Guide from Five Simple Steps (http://www.fivesimplesteps.com/products/css-animations) Character animation by the awesome Scott Benson (https://vimeo.com/bombsfall)
Forked from Val Head's Pen Steps Sprite Animation.
<? | |
/** | |
* Repeatable Custom Fields in a Metabox | |
* Author: Helen Hou-Sandi | |
* | |
* From a bespoke system, so currently not modular - will fix soon | |
* Note that this particular metadata is saved as one multidimensional array (serialized) | |
*/ | |
function hhs_get_sample_options() { |
<?php | |
/** | |
* Detect Tribe Events page | |
* @link https://wordpress.stackexchange.com/questions/340515/writing-a-function-to-detect-an-event | |
*/ | |
function is_tribe_calendar() { | |
if (tribe_is_event() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_view() || 'tribe_events' == get_post_type() || is_singular( 'tribe_events' )) { | |
return true; | |
} | |
else { |
Section 2 :Products & Orders
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
add_filter( 'woocommerce_email_attachments', 'attach_invoice_to_mail', 10, 4 ); | |
function attach_invoice_to_mail( $attachments, $email_id, $order, $email ) { | |
$email_ids = array( 'customer_completed_order' ); | |
if ( in_array ( $email_id, $email_ids ) ) { | |
if ( $invoice_id = get_post_meta( $order->get_id(), 'woo_bg_order_document', 1 ) ) { | |
$attachments[] = get_attached_file( $invoice_id ); | |
} | |
} |
These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)