Skip to content

Instantly share code, notes, and snippets.

Tom Willmot willmot

Block or report user

Report or block willmot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@willmot
willmot / termmeta.php
Last active May 6, 2016
Add termmeta support to WordPress including a termmeta table and all the standard WordPress metadata functions
View termmeta.php
<?php
/**
* Setup the termmeta table
*
* Use <code>add_theme_support( 'term-meta' );</code> to enable support for term meta
*/
function hm_add_term_meta_table() {
global $wpdb;
@joehoyle
joehoyle / gist:2569751
Created May 1, 2012
WP_Query advanced post_parent
View gist:2569751
<?php
/**
* Advanced parent querying with WP_Query
*
* This lets you do somethign like:
*/
$query = new WP_Query( array(
@erikh
erikh / hack.sh
Created Mar 31, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@xentek
xentek / generate_update.sh
Created Nov 19, 2011
Generate the necessary sql statements to move a WordPress site from one environment to another
View generate_update.sh
#!/usr/bin/env bash
echo "@@@ @@@ @@@@@@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ "
echo "@@@ @@@ @@@@@@@@ @@@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ "
echo "@@! !@@ @@! @@!@!@@@ @@! @@! @@! !@@ "
echo "!@! @!! !@! !@!!@!@! !@! !@! !@! @!! "
echo " !@@!@! @!!!:! @!@ !!@! @!! @!!!:! @!@@!@! "
echo " @!!! !!!!!: !@! !!! !!! !!!!!: !!@!!! "
echo " !: :!! !!: !!: !!! !!: !!: !!: :!! "
echo ":!: !:! :!: :!: !:! :!: :!: :!: !:! "
You can’t perform that action at this time.