Custom folder structure


Hey Community,

I'm currently creating a child theme for a client, and he wants code to be as seperated as possible. So I started by mimicking the /lib/assets folder where all my uikit-overwrite less files reside. I am however wondering if it is also possible to create a /lib/admin folder where I could create my own wp-customize.php file to include child theme specific customizer options.

Is this possible, and if so how would I be able to implement it? I'd also like to extend it a bit more, how could I make this inclusion dynamic enough to also include any future folders/files?

Kind Regards


Hi Nick, I think this discussion should answer your question. Let me know if it doesn't and I will happily answer any other questions you may have 🙂

Happy coding,

Write a reply

Login or register to write a reply, it's free!