{"id":3136577,"date":"2012-10-22T18:55:33","date_gmt":"2012-10-22T18:55:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/multisite-support-4\/"},"modified":"2016-08-20T16:52:46","modified_gmt":"2016-08-20T16:52:46","slug":"multisite-support-4","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/multisite-support-4\/","title":{"rendered":"Multisite Support"},"content":{"rendered":"<p>To only display network enabled themes i have done the following:<\/p>\n<p>Replace line 306&#8217;s code:<br \/>\n<code>$avaliable_themes  = get_themes();<\/code><\/p>\n<p>With the following 2 lines<\/p>\n<pre><code>$defaults = array(&#039;allowed&#039; =&gt; true);\n$avaliable_themes  = wp_get_themes($defaults);<\/code><\/pre>\n<p>This will replace the get_themes which is now deprecated.<\/p>\n<p>This is in action on http:\/\/www.myinstantsite.co.uk where we allow users to sign up for a site and select a theme using this awesome plugin!<\/p>\n<p>Enjoy!<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/theme-selector\/<\/p>\n","protected":false},"template":"","class_list":["post-3136577","topic","type-topic","status-closed","hentry","topic-tag-multisite"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3136577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3136577\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3136577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}