wp_xmlrpc_server::addTwoNumbers( array $args )
Test XMLRPC API by adding two numbers for client.
Description Description
Parameters Parameters
- $args
-
(array) (Required) Method arguments. Note: arguments must be ordered as documented.
- 'number1'
(int) A number to add. - 'number2'
(int) A second number to add.
- 'number1'
Return Return
(int) Sum of the two given numbers.
Source Source
File: wp-includes/class-wp-xmlrpc-server.php
public function addTwoNumbers( $args ) { $number1 = $args[0]; $number2 = $args[1]; return $number1 + $number2; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |