WordPress at a glance
function is not described

Composer\Autoload

ClassLoader::add() public WC 1.0

Registers a set of PSR-0 directories for a given prefix, either appending or prepending to the ones previously set for this prefix.

{} It's a method of the class: ClassLoader{}

No Hooks.

Return

null. Nothing.

Usage

$ClassLoader = new ClassLoader();
$ClassLoader->add( $prefix, $paths, $prepend );
$prefix(string) (required)
The prefix
$paths(array|string) (required)
The PSR-0 root directories
$prepend(true|false)
Whether to prepend the directories

Code of ClassLoader::add() WC 5.3.0

<?php
public function add($prefix, $paths, $prepend = false)
{
    if (!$prefix) {
        if ($prepend) {
            $this->fallbackDirsPsr0 = array_merge(
                (array) $paths,
                $this->fallbackDirsPsr0
            );
        } else {
            $this->fallbackDirsPsr0 = array_merge(
                $this->fallbackDirsPsr0,
                (array) $paths
            );
        }

        return;
    }

    $first = $prefix[0];
    if (!isset($this->prefixesPsr0[$first][$prefix])) {
        $this->prefixesPsr0[$first][$prefix] = (array) $paths;

        return;
    }
    if ($prepend) {
        $this->prefixesPsr0[$first][$prefix] = array_merge(
            (array) $paths,
            $this->prefixesPsr0[$first][$prefix]
        );
    } else {
        $this->prefixesPsr0[$first][$prefix] = array_merge(
            $this->prefixesPsr0[$first][$prefix],
            (array) $paths
        );
    }
}