Wordpress/WpProvider.php
public function doAction(string $tag, ...$params)
    {
        $args = [$tag];
        if (!empty($params)) $args[] = $params;

        return $this->callGlobalFunction('do_action', $args);
    }
public function doAction(string $tag, ...$params)
    {
        $args = [$tag];
        if (!empty($params)) $args[] = $params;

        return $this->callGlobalFunction('do_action', $args);
    }
public function doAction ( string $ tag , ... $ params ) { $ args = [ $ tag ] ; if ( ! empty ( $ params ) ) $ args [ ] = $ params ; return $ this -> callGlobalFunction ( 'do_action' , $ args ) ; }
Call the hook
@param string $tag
@param array $params
@return mixed
@throws \ErrorException
Call the hook