WordPress at a glance
function is not described

wp_xmlrpc_server::wp_getOptions() public WP 2.6.0

Retrieve blog options.

{} It's a method of the class: wp_xmlrpc_server{}

No Hooks.

Return

Array/IXR_Error.

Usage

$wp_xmlrpc_server = new wp_xmlrpc_server();
$wp_xmlrpc_server->wp_getOptions( $args );
$args(array) (required)

Method arguments. Note: arguments must be ordered as documented.

  • blog_id(int)
    (unused)

  • username(string)

  • password(string)

  • options(array)

Changelog

Since 2.6.0 Introduced.

Code of wp_xmlrpc_server::wp_getOptions() WP 5.5.1

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

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

	$user = $this->login( $username, $password );
	if ( ! $user ) {
		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 );
}