Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View danielhuesken's full-sized avatar

Daniel Hüsken danielhuesken

View GitHub Profile
@ocean90
ocean90 / plugin.php
Created September 19, 2012 19:22
WordPress: Print some debug infos into backend footer.
/**
* For site admins: Print some debug infos into backend footer.
* - Time
* - DB Queries
* - Memory Usage
* - Cache Hts/Misses
* - Active Plugins
*
* @param string $text Existing footer text.
*
@ocean90
ocean90 / all-in-one.php
Created January 8, 2012 23:28
Gist to WordPress
/**
* Hook into the backend and load scripts and
* init metabox.
*/
function ds_gist2wordpress_admin() {
add_action( 'wp_ajax_gist', 'ds_gistify' );
add_action( 'admin_print_scripts-post.php', 'ds_gist_js' );
add_action( 'admin_print_scripts-post-new.php', 'ds_gist_js' );