Skip to content

Instantly share code, notes, and snippets.

View JEverhart383's full-sized avatar

Jeff Everhart JEverhart383

View GitHub Profile
@JEverhart383
JEverhart383 / wp-query-ref.php
Created July 26, 2017 17:46 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@JEverhart383
JEverhart383 / get_derelicts.php
Last active March 3, 2016 19:19 — forked from woodwardtw/get_derelicts.php
wordpress multisite query to get the 50 blogs that have gone the longest without being updated
<?php
/**
* Plugin Name: Abandoned WP Plugin
* Plugin URI: https://gist.github.com/woodwardtw/cf706545a064a02fbd60
* Description: This plugin finds abandoned WP site (by last update) on a WP MU installation and provides links to WP site and mailto
* Version: 1.0.0
* Author: Tom Woodward (og script), Jeff Everhart(plugin shell and implementation)
* Author URI: https://gist.github.com/woodwardtw/cf706545a064a02fbd60
* License: GPL2
*/
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';