wp_xmlrpc_server::addTwoNumbers( array $args )

Test XMLRPC API by adding two numbers for client.


Parameters

$args

(Required) Method arguments. Note: arguments must be ordered as documented.

  • 'number1'
    (int) A number to add.
  • 'number2'
    (int) A second number to add.


Return

(int) Sum of the two given numbers.


Source

File: wp-includes/class-wp-xmlrpc-server.php

	public function addTwoNumbers( $args ) {
		$number1 = $args[0];
		$number2 = $args[1];
		return $number1 + $number2;
	}

Changelog

Changelog
Version Description
WP-1.5.0 Introduced.