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

Registers a function to be autoloaded.

Parameters Parameters


(callable) (Required) The function to register.


(bool) (Optional) Whether the function should throw an exception if the function isn't callable.

Default value: true


(bool) (Optional) Whether the function should be prepended to the stack.

Default value: false

Top ↑

Source Source

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


Top ↑

Changelog Changelog

Version Description
4.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.