PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.4
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.4
6.0.4 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 All 35 releases
← All changes | libraries/cmb2-metatabs-options/autoloader.php +25 -0 5.7.2 → 6.0.4 View file →
@@ -1,0 +1,25 @@
1 +<?php
2 +// Exit if accessed directly
3 +if( !defined( 'ABSPATH' ) ) exit;
4 +
5 +/**
6 + * RNL AUTOLOADER
7 + * Looks in /code to see if a file matching the classname exists
8 + *
9 + * @param $class
10 + *
11 + * @since 1.2 Added test to see if function has been declared already.
12 + * @since 1.0.0
13 + */
14 +if( ! function_exists( 'rnl_autoloader' ) ) {
15 +
16 + function rnl_autoloader( $class ) {
17 +
18 + $base_dir = __DIR__;
19 + $class = strtolower( $class );
20 + $file = $base_dir . '/code/' . $class . '.php';
21 + if ( file_exists( $file ) ) {
22 + require $file;
23 + }
24 + }
25 +}