spl_autoload_register( callable $autoload_function, bool $throw = true, bool $prepend = false )

Registers a function to be autoloaded.


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

File: wp-includes/spl-autoload-compat.php


Changelog

Changelog
Version Description
WP-4.6.0 Introduced. WP-4.6.0