wp_xmlrpc_server::wp_getOptions( array $args )

Retrieves blog options.


Parameters

$args

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

  • (int) Blog ID (unused).<br>
  • '1'
    (string) Username.<br>
  • '2'
    (string) Password.<br>
  • '3'
    (array) Optional. Options.<br>


Return

(array|IXR_Error)


Source

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

	public function wp_getOptions( $args ) {
		$this->escape( $args );

		$username	= $args[1];
		$password	= $args[2];
		$options	= isset( $args[3] ) ? (array) $args[3] : array();

		if ( !$user = $this->login($username, $password) )
			return $this->error;

		// If no specific options where asked for, return all of them
		if ( count( $options ) == 0 )
			$options = array_keys($this->blog_options);

		return $this->_getOptions($options);
	}

Changelog

Changelog
Version Description
2.6.0 Introduced.