__autoload

The timeline below displays how wordpress function __autoload has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.9

/**
 * Autoloader compatibility callback.
 *
 * @since 4.6.0
 *
 * @param string $classname Class to attempt autoloading.
 */
function __autoload($classname)
{
    global $_wp_spl_autoloaders;
    foreach ($_wp_spl_autoloaders as $autoloader) {
        if (!is_callable($autoloader)) {
            // Avoid the extra warning if the autoloader isn't callable.
            continue;
        }
        call_user_func($autoloader, $classname);
        // If it has been autoloaded, stop processing.
        if (class_exists($classname, false)) {
            return;
        }
    }
}