Skip to content

Instantly share code, notes, and snippets.

View anointed's full-sized avatar

shawn gaffney anointed

View GitHub Profile
@anointed
anointed / functions.php
Created November 22, 2011 05:19 — forked from kunalb/functions.php
Overriding the default bbpress theme
/**
* Set the theme compat theme properties
*
* @since bbPress (r3311)
*
* @global bbPress $bbp
* @param BBP_Theme_Compat $theme
* @uses current_theme_supports()
*/
function bbp_setup_new_theme_compat() {
@anointed
anointed / scaffolding.php
Created November 22, 2011 05:00 — forked from eteubert/scaffolding.php
WordPress: Tab Layout for Settings Pages
<?php
// initialize plugin
if ( function_exists( 'add_action' ) && function_exists( 'register_activation_hook' ) ) {
add_action( 'plugins_loaded', array( 'tabbed_plugin', 'get_object' ) );
}
class tabbed_plugin
{
// singleton class variable
static private $classobj = NULL;