Skip to content

Instantly share code, notes, and snippets.

View jkudish's full-sized avatar

Joey Kudish jkudish

View GitHub Profile
if ( isset($_GET['debug']) && $_GET['debug'] == 'debug')
define('WP_DEBUG', true);
/* Code goes into config.php
add ?debug=debug to a URL and see what's causing the trouble
change the second 'debug' to a diff key => anonymous/secure.
add_action('all', create_function('', 'var_dump(current_filter());'));
//show all hooks and filters in source
Redirect 301 /wp-config.php http://svr.gov.ru/honeyd
remove_action('genesis_post_title', 'genesis_do_post_title'); // remove page titles
remove_filter('genesis_nav_items', 'genesis_nav_right', 10, 2);
add_filter('genesis_nav_items', 'custom_nav_right', 10, 2);
function custom_nav_right($menu, $args) {
// function goes here
}
@jkudish
jkudish / Style links based on destination
Created August 10, 2010 12:33
Style links based on destination / css