pfeifferNet

autoloader.php

Dynamic class autoloader.

Tags
since
5.1.0
copyright

2024 Keith Pfeiffer

Table of Contents

Functions

autoloader()  : void
Dynamically load the referenced class.

Functions

autoloader()

Dynamically load the referenced class.

autoloader(string $required_class) : void

This is the recommended WordPress approach, so if/else is OK.

Parameters
$required_class : string

The fully-qualified name of the class to load.

Tags
SuppressWarnings

(PHPMD.ElseExpression)

since
5.4.0
uses
get_plugin_metadata()

        
On this page

Search results