xmlrpc_call WordPress Action Hook

The xmlrpc_call hook is triggered when an XML-RPC method is called. It can be used to modify the arguments passed to the method and to return a custom value.

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.


Description

All built-in XML-RPC methods use the action xmlrpc_call, with a parameter equal to the method’s name, e.g., wp.getUsersBlogs, wp.newPost, etc.


Top ↑

Parameters

$name

(string)The method name.

$args

(array|string)The escaped arguments passed to the method.

$server

(wp_xmlrpc_server)The XML-RPC server instance.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Added the $args and $server parameters.
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More