# automatorwp/5.8.6/libraries/cmb2-metatabs-options/autoloader.php

AutomatorWP – No-Code Workflow Automation, Integration &amp; Webhooks Plugin, now with AI, version 5.8.6. 22 lines.

- Page: https://pluginprobe.com/plugins/automatorwp/5.8.6/code/libraries/cmb2-metatabs-options/autoloader.php
- Raw: https://pluginprobe.com/plugins/automatorwp/5.8.6/raw/libraries/cmb2-metatabs-options/autoloader.php
- Modified: 2026-08-26T10:15:00+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/automatorwp/5.8.6/code/libraries/cmb2-metatabs-options/autoloader.php#L10-L20`.

```php
<?php
/**
 * RNL AUTOLOADER
 * Looks in /code to see if a file matching the classname exists
 *
 * @param $class
 *
 * @since 1.2    Added test to see if function has been declared already.
 * @since 1.0.0
 */
if( ! function_exists( 'rnl_autoloader' ) ) {
	
	function rnl_autoloader( $class ) {
		
		$base_dir = __DIR__;
		$class    = strtolower( $class );
		$file     = $base_dir . '/code/' . $class . '.php';
		if ( file_exists( $file ) ) {
			require $file;
		}
	}
}
```
