autoloader_prefix ) { $class = explode( '_', __CLASS__ ); $this->autoloader_prefix = $class[ 0 ]; } if ( false !== strpos( $class_name, $this->autoloader_prefix ) ) { $class_name = str_replace($this->autoloader_prefix, '', $class_name); $classes_dir = realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR; $class_file = str_replace('_', DIRECTORY_SEPARATOR, $class_name) . '.php'; if (file_exists($classes_dir . $class_file)) { require_once $classes_dir . $class_file; } } } } /** * The main function responsible for returning The Highlander Plugin * Instance to functions everywhere. * * Use this function like you would a global variable, except without needing * to declare the global. * * Example: * * @since 3.0 * @return Plugin Highlander Instance */ function NF_Abstracts_Extension() { return NF_Abstracts_Extension::instance(); } NF_Abstracts_Extension();