Opal-Estate-Pro/inc/vendors/cmb2-plugins/cmb2-tabs/autoloader.php

11 lines
269 B
PHP
Raw Normal View History

2019-09-10 06:27:33 +02:00
<?php
// Load project files
spl_autoload_register( function( $class ) {
$file = strtolower( str_replace( '_', '-', $class ) );
$file = dirname( __DIR__ ) . '/' . str_replace( '\\', '/', $file ) . '.class.php';
if ( file_exists( $file ) ) {
include $file;
}
} );