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 have a multiple-site WordPress install. I have decided to centralize as many of my libraries as possible into one spot, for obvious organizational reasons, and in order to reduce bloating. Many of those libraries can be used both in plugins and themes. My first idea is to create a 'myLibs' (or other name) directory inside wp-content where I would save all those libraries. Anybody has a better idea? Would there be any reasons NOT to do this?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I would recommend creating a plugin that holds all of your libraries. In the main plugin file, set a constant that defines the path to the plugin folder so you can easily include the files with your other plugins/themes.

share|improve this answer
    
Great idea, why didn't I think of it?! Thanks. –  Regis Zaleman Aug 24 '11 at 11:22
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.