# bbp-core/1.2.3/autoloader.php

Forumax – AI Powered Advanced Community Forum Plugin, version 1.2.3. 17 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/1.2.3/code/autoloader.php
- Raw: https://pluginprobe.com/plugins/bbp-core/1.2.3/raw/autoloader.php
- Modified: 2024-08-22T15:30:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/1.2.3/code/autoloader.php#L10-L20`.

```php
<?php
spl_autoload_register( 'bbp_core_autoloader' );

/**
 * Autoload files for the plugin
 *
 * @param string $class
 * @return void
 */
function bbp_core_autoloader( $class ) {
	$path = __DIR__ . '/includes/' . str_replace( '\\', '/', $class ) . '.php';

	if ( file_exists( $path ) ) {
		include_once $path;
	}
}

```
