W3cubDocs

/WordPress

wp_xmlrpc_server::mt_supportedMethods(): array

Retrieves an array of methods supported by this server.

Return

array

Source

public function mt_supportedMethods() {
	/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
	do_action( 'xmlrpc_call', 'mt.supportedMethods', array(), $this );

	return array_keys( $this->methods );
}

Hooks

do_action( ‘xmlrpc_call’, string $name, array|string $args, wp_xmlrpc_server $server )

Fires after the XML-RPC user has been authenticated but before the rest of the method logic begins.

Changelog

Version Description
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/mt_supportedmethods