Skip to content

Instantly share code, notes, and snippets.

@jaredatch
jaredatch / wp-disable-feeds.php
Created November 15, 2012 17:28 — forked from ramseyp/wp-disable-feeds.php
Disable Feeds for WordPress site
<?php
/**
* Disable feeds
*
* @return string die
*/
function ja_disable_feed() {
wp_die( 'No feed available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!' );
}
@jaredatch
jaredatch / functions.php
Created September 21, 2012 05:52 — forked from billerickson/functions.php
Add Custom Image Sizes to Media Uploader
<?php
/**
* Add Custom Image Sizes to Media Uploader
* @author Pippin Williamson
* @link http://pippinsplugins.com/add-custom-image-sizes-to-media-uploader/
*
* @param array $sizes
* @return array
*/
@jaredatch
jaredatch / gist:3759896
Created September 21, 2012 05:37 — forked from billerickson/gist:3698476
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(