Plugin Directory

User Theme

It's a simple Plugin to load a Theme for a special user based on IP, User-ID, category or User-Level. This plugin allows you to safely test an develop

Download Version 0.3

It's a simple Plugin to load a Theme for a special user based on IP, User-ID, category or User-Level. This plugin allows you to safely test an development drive a theme on your live-blog.

You can use a different Theme for different user. The pluginis very small and easy, no options in the database-table and no options in backend of WordPress.

Hint: if you use a Theme-Framework, then is the hook template the name of the framework and the hook stylesheet the name of the activate child-theme. You must copy the function and add this with a different name. Follow a small example.

    function fb_user_theme_template($template = '') {

        if ( current_user_can('manage_options') ) {
            $template = 'genesis'; // framework
        } elseif ( current_user_can('read') ) {
            $template = 'twentyten';
        }

        return $template;
    }
    add_filter('template', 'fb_user_theme_template');

    function fb_user_theme_stylesheet($stylesheet = '') {

        if ( current_user_can('manage_options') ) {
            $stylesheet = 'enterprise'; // childtheme
        } elseif ( current_user_can('read') ) {
            $stylesheet = 'twentyten';
        }

        return $stylesheet;
    }
    add_filter('stylesheet', 'fb_user_theme_stylesheet');

Interested in WordPress tips and tricks

You may also be interested in WordPress tips and tricks at WP Engineer or for german people bueltge.de

Author: Bueltge

Requires: 1.5 or higher
Compatible up to: 3.1-alpha
Last Updated: 2010-1-7 Downloads: 5,711

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(7 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
50,2,1
33,3,1
0,1,0
17,6,1