WordPress.org

Ready to get started?Download WordPress

Forums

Toolbar Theme Switcher
[resolved] Sample filter application (2 posts)

  1. janmalagucute
    Member
    Posted 1 year ago #

    Hi,

    In FAQ it says
    I don't want all themes to show...
    Filter tts_allowed_themes and unset unwanted themes.

    Can you please elaborate on that?
    How can I apply filter? Where? I don't see settings page.

    http://wordpress.org/extend/plugins/toolbar-theme-switcher/

  2. Andrey "Rarst" Savchenko
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin doesn't currently have settings page and tinkering opportunities are bit involved and take some basic dev skills.

    For example if you want to hide Twenty Ten from switcher you can add this snippet (to your theme's functions.php file for example):

    add_filter( 'tts_allowed_themes', 'hide_twenty_ten' );
    
    function hide_twenty_ten( $themes ) {
    
    	unset( $themes['Twenty Ten'] );
    
    	return $themes;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.