\Jetpack_XMLRPC_Server

Just a sack of functions. Not actually an IXR_Server

Summary

Methods
Properties
Constants
xmlrpc_methods()
bootstrap_xmlrpc_methods()
verify_registration()
verify_action()
login()
error()
test_connection()
test_api_user_code()
features_available()
features_enabled()
get_post()
get_posts()
get_comment()
get_comments()
update_attachment_parent()
json_api()
$error
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$error

$error

The current error object

Methods

xmlrpc_methods()

xmlrpc_methods( $core_methods)

Whitelist of the XML-RPC methods available to the Jetpack Server. If the user is not authenticated (->login()) then the methods are never added, so they will get a "does not exist" error.

Parameters

$core_methods

bootstrap_xmlrpc_methods()

bootstrap_xmlrpc_methods()

Whitelist of the bootstrap XML-RPC methods

verify_registration()

verify_registration( $verify_secret)

Verifies that Jetpack.WordPress.com received a registration request from this site

Parameters

$verify_secret

verify_action()

verify_action( $params) : \WP_Error|string

Parameters

$params

Returns

\WP_Error|string —

secret_2 on success, WP_Error( error_code => error_code, error_message => error description, error_data => status code ) on failure Possible error_codes: verify_secret_1_missing verify_secret_1_malformed verify_secrets_missing: No longer have verification secrets stored verify_secrets_mismatch: stored secret_1 does not match secret_1 sent by Jetpack.WordPress.com

login()

login() : \WP_User|\IXR_Error

Wrapper for wp_authenticate( $username, $password );

Returns

\WP_User|\IXR_Error

error()

error( $error) : null|\IXR_Error

Returns the current error as an IXR_Error

Parameters

$error

Returns

null|\IXR_Error

test_connection()

test_connection() : bool|\IXR_Error

Just authenticates with the given Jetpack credentials.

Returns

bool|\IXR_Error

test_api_user_code()

test_api_user_code( $args)

Parameters

$args

features_available()

features_available() : array|\IXR_Error

Returns what features are available. Uses the slug of the module files.

Returns

array|\IXR_Error

features_enabled()

features_enabled() : array|\IXR_Error

Returns what features are enabled. Uses the slug of the modules files.

Returns

array|\IXR_Error

get_post()

get_post( $id)

Parameters

$id

get_posts()

get_posts( $args)

Parameters

$args

get_comment()

get_comment( $id)

Parameters

$id

get_comments()

get_comments( $args)

Parameters

$args

update_attachment_parent()

update_attachment_parent( $args)

Parameters

$args

json_api()

json_api( $args)

Parameters

$args