PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 5.8.5
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v5.8.5
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
automatorwp / libraries / cmb2-metatabs-options / autoloader.php

autoloader.php in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI 5.8.5, at libraries/cmb2-metatabs-options/autoloader.php

22 lines 490 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * RNL AUTOLOADER
4 * Looks in /code to see if a file matching the classname exists
5 *
6 * @param $class
7 *
8 * @since 1.2 Added test to see if function has been declared already.
9 * @since 1.0.0
10 */
11 if( ! function_exists( 'rnl_autoloader' ) ) {
12
13 function rnl_autoloader( $class ) {
14
15 $base_dir = __DIR__;
16 $class = strtolower( $class );
17 $file = $base_dir . '/code/' . $class . '.php';
18 if ( file_exists( $file ) ) {
19 require $file;
20 }
21 }
22 }