Skip to content

Instantly share code, notes, and snippets.

@cmunns
cmunns / woo_bronto_json.php
Created Jan 26, 2018
WooCommerce Bronto Script
View woo_bronto_json.php
add_action('wp_footer', 'add_bronto_json');
function add_bronto_json() {
$brontoItems = [];
if( is_wc_endpoint_url( 'order-received' ) ):
if(isset($_GET['view-order'])) {
$order_id = $_GET['view-order'];
View yotpo-permalinks
View gist:f21389995a5547aad7e97ad8f005cf4b
$email = (isset($_POST['email']) ? $_POST['email'] : '';
$sendTo = 'windyd@naturvet.com';
$headers = 'From: '.$email.'' . "\r\n\\";
if( $email != '' ) {
wp_mail($sendTo,'NaturVet.com Newsletter Subscriber', 'Please add '.$email.' to the NaturVet email list.', $headers);
}
View update-permalinks.php
@cmunns
cmunns / continents.json
Created Apr 20, 2015
Continental GeoJson
View continents.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.