spl_autoload_register( callable $autoload_function, bool $throw = true, bool $prepend = false )
Registers a function to be autoloaded.
Parameters Parameters
- $autoload_function
-
(callable) (Required) The function to register.
- $throw
-
(bool) (Optional) Whether the function should throw an exception if the function isn't callable.
Default value: true
- $prepend
-
(bool) (Optional) Whether the function should be prepended to the stack.
Default value: false
Source Source
File: wp-includes/spl-autoload-compat.php
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |