Title: IXR_ClientMulticall::addCall
Published: July 6, 2022
Last modified: August 20, 2026

---

# IXR_ClientMulticall::addCall( $args )

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/ixr_clientmulticall/addcall/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/ixr_clientmulticall/addcall/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/ixr_clientmulticall/addcall/?output_format=md#wp--skip-link--target)

## 󠀁[Source](https://developer.wordpress.org/reference/classes/ixr_clientmulticall/addcall/?output_format=md#source)󠁿

    ```php
    function addCall( ...$args )
    {
        $methodName = array_shift($args);
        $struct = array(
            'methodName' => $methodName,
            'params' => $args
        );
        $this->calls[] = $struct;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ixr/class-ixr-clientmulticall.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/IXR/class-IXR-clientmulticall.php#L33)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/IXR/class-IXR-clientmulticall.php#L33-L41)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/ixr_clientmulticall/addcall/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Formalized the existing `...$args` parameter by adding it to the function signature. | 
| [1.5.0](https://developer.wordpress.org/reference/since/1.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fixr_clientmulticall%2Faddcall%2F)
before being able to contribute a note or feedback.