src/Loader.php
protected function add($hooks, $hook, $callback, $priority, $accepted_args)
    {
        $hooks[] = array(
            'hook' => $hook,
            'callback' => $callback,
            'priority' => $priority,
            'accepted_args' => $accepted_args
        );

        return $hooks;
    }
protected function add($hooks, $hook, $callback, $priority, $accepted_args)
    {
        $hooks[] = array(
            'hook' => $hook,
            'callback' => $callback,
            'priority' => $priority,
            'accepted_args' => $accepted_args
        );

        return $hooks;
    }
A utility function that is used to register the actions and hooks into a single
collection.

@since   1.0.0
@access  private
@param   array $hooks The collection of hooks that is being registered (that is, actions or filters).
@param   string $hook The name of the WordPress filter that is being registered.
@param   callable $callback The name of the function definition on the $component.
@param   int $priority The priority at which the function should be fired.
@param   int $accepted_args The number of arguments that should be passed to the $callback.
@return  array The collection of actions and filters registered with WordPress.