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