Skip to content

Instantly share code, notes, and snippets.

View jeremyclark13's full-sized avatar

Jeremy Clark jeremyclark13

View GitHub Profile
@jeremyclark13
jeremyclark13 / gist:5554820
Created May 10, 2013 14:40
Calling a filter with an additional parameter.
<?php
/**
* Stores a value and calls any existing function with this value.
*/
class Filter_Storage
{
/**
* Filled by __construct(). Used by __call().
*
* @type mixed Any type you need.
@jeremyclark13
jeremyclark13 / gist:6617363
Created September 18, 2013 23:49
Plugin update file with namespaced variables and functions. This assumes your namespace slug is 'my_cool_plugin'. There are two variables at the top of the file to namespace, and the two functions.
<?php
/*
Plugin Name: Test Plugin Update
Plugin URI: http://clark-technet.com
Description: Test plugin updates
Version: 0.9
Author: Jeremy Clark
Author URI: http://clark-technet.com
*/