Skip to content

Instantly share code, notes, and snippets.

View mattjdever's full-sized avatar

Matthew Dever mattjdever

View GitHub Profile
@mattjdever
mattjdever / purchasable-by-category.php
Created December 22, 2017 18:11 — forked from pelmered/purchasable-by-category.php
Make WooCommerce products purchasable by category
add_action('wp', 'prefix_theme_setup', 99);
function prefix_theme_setup()
{
add_filter( 'woocommerce_is_purchasable', 'prefix_is_purchasable', 20, 2);
}
function prefix_is_purchasable($purchasable, $product)
@mattjdever
mattjdever / html.html.html
Created February 20, 2016 19:34 — forked from zeffii/html.html.html
jquery loading a markdown file and encoding as html
<script>
// get markdown content
var body_location = 'markdown/README.markdown';
function getText(myUrl){
var result = null;
$.ajax( { url: myUrl,
type: 'get',
dataType: 'html',
@mattjdever
mattjdever / Firefox-Friendly-Slider-Thumbs.markdown
Created September 21, 2013 04:17
A Pen by David Scott Kirby.