Snippets

Simple WordPress Autoloader

If we develop a bit more complex theme or plugin where we want to use the modern PHP concepts, probably we want to use a simple autoloader for that. This snippet provides a starting point how could a basic WordPress compatible loader looks like. Replace the paths and the namespaces and you are ready to go!

Leave a Reply

Your email address will not be published. Required fields are marked *

More WordPress Snippets