WordPress

WordPress addons and hacks.

Plugins

Hacks

// Remove version from header.
remove_action('wp_head', 'wp_generator');
// Print template name in footer.
global $template; echo basename($template);
// Remove social user fields
function bn_remove_contact_fields($fields) {
        unset($fields['aim']);
        unset($fields['yim']);
        unset($fields['jabber']);
        unset($fields['googleplus']);
        unset($fields['twitter']);
        unset($fields['facebook']);
        return $fields;
}
// Remove parent (2012) sidebars.
function bn_remove_sidebars() {
        unregister_sidebar('sidebar-1');
        unregister_sidebar('sidebar-2');
        unregister_sidebar('sidebar-3');
}
add_action('widgets_init', 'bn_remove_sidebars', 11);
function remove_parent_theme_features() {
    remove_theme_support( 'post-formats' );
    remove_theme_support( 'post-thumbnails' );
    remove_theme_support( 'custom-background' );
    remove_theme_support( 'custom-header' );
    remove_theme_support( 'automatic-feed-links' );
}

Leave a Reply