Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 531 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 531 Bytes

WP Autoload

PHP autoloader that can load classes from files named according to the WordPress coding standards (with class-, abstract- and trait- prefixes). Use this if for some reason you can't use the Composer classmap autoloader.

Alternatively, create a copy of the Autoload class in your project and update the namespace to match your project.

Example:

use WPElevator\WP_Autoload\Autoload;

$autoload = new Autoload();
$autoload->add( 'Your_Vendor\Your_Namespace', __DIR__ . '/php' );