Skip to content

Instantly share code, notes, and snippets.

@jdabs
jdabs / geth-chainlink-node.bash
Last active May 27, 2018 14:49 — forked from boxhock/geth-chainlink-node.bash
A startup script for VPS providers such as Vultr to automatically set up geth and chainlink
@jdabs
jdabs / wp_mail.md
Created October 6, 2017 18:23 — forked from johnbillion/wp_mail.md
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.8, and includes some upcoming changes in WordPress 4.9.

There are a few TODOs left. Please bear with me.

@jdabs
jdabs / WordPress Shortcode with ob_start()
Created September 26, 2017 14:53 — forked from azizultex/WordPress Shortcode with ob_start()
WordPress Shortcode with ob_start()
function custom_query_shortcode($atts) {
// EXAMPLE USAGE:
// [loop the_query="showposts=100&post_type=page&post_parent=453"]
// Defaults
extract(shortcode_atts(array(
"the_query" => ''
), $atts));
@jdabs
jdabs / gist:092bd78e31b12de522f037a5b9df57c9
Created August 22, 2017 14:49 — forked from ivandoric/gist:e4e46294c4d35eac0ec8
wordpress: create custom reset password page
<?php //Add all of this tu custom page template ?>
<?php
global $wpdb;
$error = '';
$success = '';
// check if we're in reset form
if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] )
{
@jdabs
jdabs / remove-billing.php
Last active June 21, 2017 19:49 — forked from jgalea/remove-billing.php
Remove billing details from WooCommerce checkout. Forked from: https://gist.github.com/jgalea/5884548#file-remove-billing-php
<?php
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);