Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 430 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 430 Bytes

wordpress-autoload-class

Example that autoloads a class for use in wordpress.

The following example of autoloading may be used in the root of a plugin or theme. It will autoload PHP classes that are placed in the classes folder (relative to the file the script is placed in) and obviously deeper directories.

This example file has also some example classes and folders the illustrate the use of namespaces and directories.