{"id":47306,"date":"2012-03-19T14:42:14","date_gmt":"2012-03-19T14:42:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/toolbar-theme-switcher\/"},"modified":"2013-04-04T21:30:40","modified_gmt":"2013-04-04T21:30:40","slug":"toolbar-theme-switcher","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/toolbar-theme-switcher\/","author":910727,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"3.5.2","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Toolbar Theme Switcher","header_author":"Andrey \"Rarst\" Savchenko","header_description":"","assets_banners_color":"fefefe","last_updated":"2013-04-04 21:30:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/toolbar-theme-switcher\/","header_author_uri":"http:\/\/www.rarst.net\/","rating":5,"author_block_rating":0,"active_installs":20,"downloads":6691,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"6"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"520891","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[441,11085,1249,1541],"plugin_category":[43,51],"plugin_contributors":[84354],"plugin_business_model":[],"class_list":["post-47306","plugin","type-plugin","status-closed","hentry","plugin_tags-multisite","plugin_tags-theme-switcher","plugin_tags-themes","plugin_tags-toolbar","plugin_category-customization","plugin_category-multisite","plugin_contributors-rarst","plugin_committers-rarst"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/toolbar-theme-switcher_fefefe.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Toolbar Theme Switcher description pretty much fits in its name.<\/p>\n\n<p>This plugin provides toolbar (previously known as admin bar) menu for users to quickly switch between available themes.<\/p>\n\n<p>Theme choice is individual for user, saved in cookies and doesn't affect current theme of the site.<\/p>\n\n<p>Plugin is multisite-aware - it will only list themes allowed for site and save choice for each site separately.<\/p>\n\n<p><a href=\"https:\/\/bitbucket.org\/Rarst\/toolbar-theme-switcher\/\">Development repository and issue tracker<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>toolbar-theme-switcher<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I switched to broken theme!<\/dt>\n<dd><p>Clear the cookies. Don't do it again.<\/p><\/dd>\n<dt>I don't want all themes to show...<\/dt>\n<dd><p>Filter <code>tts_allowed_themes<\/code> and unset unwanted themes.<\/p>\n\n<p>Example code (removes Twenty Ten theme from the list):<\/p>\n\n<pre><code>add_filter( 'tts_allowed_themes', 'hide_twenty_ten' );\n\nfunction hide_twenty_ten( $themes ) {\n\n    unset( $themes['Twenty Ten'] );\n\n    return $themes;\n}\n<\/code><\/pre><\/dd>\n<dt>Who can see and use the menu?<\/dt>\n<dd><p>Users with <code>switch_themes<\/code> capability (administrators by default).<\/p>\n\n<p>Filter <code>tts_capability<\/code> (capability name) or <code>tts_can_switch_themes<\/code> (boolean) to customize.<\/p><\/dd>\n<dt>I don't want theme name in toolbar? | I want something else in toolbar?<\/dt>\n<dd><p>Filter <code>tts_root_title<\/code> to control what it says.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li><em>(internal)<\/em> reworked to filter underlying options - more robust, should solve customizer issues and similar<\/li>\n<li><em>(localization)<\/em> made translation-ready, added russian translation<\/li>\n<li><em>(compatibility)<\/em> removed legacy checks, increased minimum required WordPress version to 3.4<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li><em>(bugfix)<\/em> fixed crash in installations with multiple theme directories<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li><em>(docs)<\/em> added example code for removing theme from list to readme<\/li>\n<li><em>(bugfix)<\/em> improved cookie name to better work on secure sites<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li><em>(bugfix)<\/em> changed order of function checks to prevent deprecated notices in admin<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li><em>(bugfix)<\/em> fixed fatal error on deprecated function in WP 3.4 #blamenacin<\/li>\n<li><em>(internal)<\/em> switched to older <code>add_menu()<\/code> method for now (pre-3.3 compatibility)<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li><em>(internal)<\/em> code cleanup<\/li>\n<li><em>(enhancement)<\/em> show current theme name in toolbar, props Leho Kraav<\/li>\n<li><em>(enhancement)<\/em> added filter for root node title, props Leho Kraav<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial repository release.<\/li>\n<\/ul>","raw_excerpt":"Adds toolbar menu that allows users to switch theme for themselves.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/47306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=47306"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rarst"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=47306"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=47306"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=47306"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=47306"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=47306"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=47306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}