Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've setup a few custom widgets for my theme, and when I go into Appearance > Editor, the widget file names are showing up in the list of files that can be edited.

How can I prevent these widget file names from showing up in the Editor's list of files? I put them in a subdirectory ("widgets"), but they are still showing up on the list with the main pages.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The editor won't traverse more than one directory deep, so a simple way to hide them is to put them in a dir within a dir:

/inc/widgets/my-widget-file.php
share|improve this answer
    
Thanks. Accepted and upvoted! –  chowwy Feb 9 '13 at 21:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.