Wordpress/WpProvider.php
public function addAction(string $tag, callable $callback, ?int $priority = null)
    {
        $args = [$tag, $callback];
        if (!is_null($priority)) $args[] = $priority;

        return $this->callGlobalFunction('add_action', $args);
    }
public function addAction(string $tag, callable $callback, ?int $priority = null)
    {
        $args = [$tag, $callback];
        if (!is_null($priority)) $args[] = $priority;

        return $this->callGlobalFunction('add_action', $args);
    }
public function addAction ( string $ tag , callable $ callback , ? int $ priority = null ) { $ args = [ $ tag , $ callback ] ; if ( ! is_null ( $ priority ) ) $ args [ ] = $ priority ; return $ this -> callGlobalFunction ( 'add_action' , $ args ) ; }
Add action hook
@param string $tag
@param callable $callback
@param int|null $priority
@return mixed
@throws \ErrorException
Add action hook