wp_xmlrpc_server::addTwoNumbers( array $args )

Test XMLRPC API by adding two numbers for client.


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.


Top ↑

Return Return

(int) Sum of the two given numbers.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.