Best location for plugin extension code

I have a bit of code for extended a few plugins (WP Visual Bakery & Delicious Shortcodes), in my non sage themes I’ve always coded this into my framework files. With sage I’m not exactly sure the file location I’m thinking it should be under the lib file. But where is the best place to call the inclusion of these files.

I put code like this in either lib/extras.php, or in a mu-plugin that contains site specific functionality.

eg. mu-plugins/sitename/extras.php

Along with what Ben said, you can always add your own php files to lib for better separation if you want as well. Then add them to the include list in functions.php

Thanks guys, that is exactly what I was thinking I had to do.

This topic was automatically closed after 4 hours. New replies are no longer allowed.