spl_autoload_unregister( callable $function )
Unregisters an autoloader function.
Description Description
Parameters Parameters
- $function
-
(callable) (Required) The function to unregister.
Return Return
(bool) True if the function was unregistered, false if it could not be.
Source Source
File: wp-includes/spl-autoload-compat.php
function spl_autoload_unregister( $function ) { global $_wp_spl_autoloaders; foreach ( $_wp_spl_autoloaders as &$autoloader ) { if ( $autoloader === $function ) { unset( $autoloader ); return true; } } return false; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |