Skip to content

Instantly share code, notes, and snippets.

View makeitaboldmove's full-sized avatar

Bold Move makeitaboldmove

View GitHub Profile
@helgatheviking
helgatheviking / woocommerce-shipping-contact.php
Last active June 7, 2023 11:34
Add a shipping email/phone field to checkout and notify of new orders
<?php
/*
Plugin Name: WooCommerce Shipping Contact
Plugin URI: https://github.com/helgatheviking/wc-shipping-contact
Description: Add a shipping email field to checkout and notify of new orders
Version: 1.1.0
Author: Kathy Darling
Author URI: http://kathyisawesome.com
Requires at least: 4.0
Tested up to: 4.8
@RocketFever22
RocketFever22 / models.js
Last active July 14, 2020 06:04
A simple way to approach routing in express.js
// This file should be in routes/models.js
const routes = require('express').Router();
const data = require('../data.json');
routes.get('/', (req, res) => {
res.status(200).json(data.models);
});
routes.get('/:modelId', (req, res) => {