[wp-hackers] Hiding Child's Template Theme

Stephen Rider wp-hackers at striderweb.com
Mon Mar 30 14:10:24 GMT 2009


Set the filter so it only does its thing if we're on the Manage Themes  
page. :)

Stephen

On Mar 30, 2009, at 9:04 AM, Chris Jean 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.
>
>
> Matt Martz wrote:
>> On Mon, Mar 30, 2009 at 9:46 AM, Chris Jean <gaarai at gaarai.com>  
>> wrote:
>>
>>> I'm starting to play around with child themes and wondered if it  
>>> is possible
>>> to hide the parent or template theme of a child theme in Manage  
>>> Themes.
>>
>> Perhaps adding a filter in wp-admin/themes.php for $themes =
>> get_themes(); so that you can hook into it from the child themes
>> functions.php and remove the parent theme from the return.



More information about the wp-hackers mailing list