[wp-hackers] Hiding Child's Template Theme
ncrice at gmail.com
Mon Mar 30 14:14:10 GMT 2009
I think Chris's point was that doing a filter there would be useful once the
theme is already activated. But that's exactly what we're trying to avoid.
The point is that we need a way making a theme hidden just by adding a
parameter to the style.css file.
Having to use the theme's code in order to hide the theme from the theme
list makes no sense. It would never work.
On Mon, Mar 30, 2009 at 10:08 AM, Matt Martz <mdmartz at sivel.net> wrote:
> On Mon, Mar 30, 2009 at 10:04 AM, Chris Jean <gaarai at gaarai.com> wrote:
> > I haven't thought of doing that Matt. I'll have to give it a try.
> > My initial thought is that doing this would break the theme since the
> > location of the parent files will no longer exist in the data structure.
> > Chris Jean
> > http://gaarai.com/
> > http://wp-roadmap.com/
> > http://dnsyogi.com/
> It shouldn't if the filter is added to wp-admin/themes.php because
> that is used solely for displaying the themes on the manage themes
> Keep in mind that of course the filter is not already there and the
> keys for the array returned by get_themes is actually the name of the
> theme and not the slug. For example 'WordPress Classic' instead of
> Matt Martz
> matt at sivel.net
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers