src/Hook/FilterBuilder.php
protected function addEventListener($name, $callback, $priority, $accepted_args)
    {
        $this->hooks[$name] = [$callback, $priority, $accepted_args];
        $this->addFilter($name, $callback, $priority, $accepted_args);
    }
protected function addEventListener($name, $callback, $priority, $accepted_args)
    {
        $this->hooks[$name] = [$callback, $priority, $accepted_args];
        $this->addFilter($name, $callback, $priority, $accepted_args);
    }
protected function addEventListener ( $ name , $ callback , $ priority , $ accepted_args ) { $ this -> hooks [ $ name ] = [ $ callback , $ priority , $ accepted_args ] ; $ this -> addFilter ( $ name , $ callback , $ priority , $ accepted_args ) ; }
Add a filter event for the specified hook.

@param string                $name
@param \Closure|string|array $callback
@param int                   $priority
@param int                   $accepted_args
Add a filter event for the specified hook .