src/Hook/Hook.php
public function add($hooks, $callback, $priority = 10, $accepted_args = 3)
    {
        foreach ((array) $hooks as $hook) {
            $this->addHookEvent($hook, $callback, $priority, $accepted_args);
        }

        return $this;
    }
public function add($hooks, $callback, $priority = 10, $accepted_args = 3)
    {
        foreach ((array) $hooks as $hook) {
            $this->addHookEvent($hook, $callback, $priority, $accepted_args);
        }

        return $this;
    }
public function add ( $ hooks , $ callback , $ priority = 10 , $ accepted_args = 3 ) { foreach ( ( array ) $ hooks as $ hook ) { $ this -> addHookEvent ( $ hook , $ callback , $ priority , $ accepted_args ) ; } return $ this ; }
Wrapper of the "add_action" or "add_filter" functions. Allows
a developer to specify a controller class or closure.

@param string|array          $hooks         The action hook name.
@param \Closure|string|array $callback      The action hook callback instance.
@param int                   $priority      The priority order for this action.
@param int                   $accepted_args Default number of accepted arguments.

@throws BadMethodCallException

@return $this
Wrapper of the add_action or add_filter functions . Allows a developer to specify a controller class or closure .