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.
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.
Source
Related
Used By
Used By | Description |
---|---|
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_getPostCategories() | Retrieve post categories. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_setPostCategories() | Sets categories for a post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_supportedMethods() | Retrieve an array of methods supported by this server. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_supportedTextFilters() | Retrieve an empty array because we don’t support per-post text filters. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_getTrackbackPings() | Retrieve trackbacks sent to a given post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_publishPost() | Sets a post’s publish status to ‘publish’. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::pingback_ping() | Retrieves a pingback and registers it. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::pingback_extensions_getPingbacks() | Retrieve array of URLs that pingbacked the given URL. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_editPost() | Edit a post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_getPost() | Retrieve post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_getRecentPosts() | Retrieve list of recent posts. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_getCategories() | Retrieve the list of categories on a given blog. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_newMediaObject() | Uploads a file, following your settings. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_getRecentPostTitles() | Retrieve the post titles of recent posts. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mt_getCategoryList() | Retrieve list of all categories on blog. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_getUserInfo() | Retrieve user’s data. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_getPost() | Retrieve post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_getRecentPosts() | Retrieve list of recent posts. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_newPost() | Creates new post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_editPost() | Edit a post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_deletePost() | Remove a post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::mw_newPost() | Create a new post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getMediaItem() | Retrieve a media item by ID |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPostFormats() | Retrieves a list of post formats used by the site. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPostType() | Retrieves a post type |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getMediaLibrary() | Retrieves a collection of media library items (or attachments) |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPostTypes() | Retrieves a post types |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getRevisions() | Retrieve revisions for a specific post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_restoreRevision() | Restore a post revision |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::blogger_getUsersBlogs() | Retrieve blogs that user owns. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getComments() | Retrieve comments. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_deleteComment() | Delete a comment. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_editComment() | Edit comment. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_newComment() | Create new comment. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getCommentStatusList() | Retrieve all of the comment status. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getCommentCount() | Retrieve comment count. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPostStatusList() | Retrieve post statuses. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPageStatusList() | Retrieve page statuses. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPages() | Retrieve Pages. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_newPage() | Create new page. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_deletePage() | Delete page. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_editPage() | Edit page. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPageList() | Retrieve page list. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getAuthors() | Retrieve authors list. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getTags() | Get list of all tags |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_newCategory() | Create new category. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_deleteCategory() | Remove category. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_suggestCategories() | Retrieve category list. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getComment() | Retrieve comment. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPosts() | Retrieve posts. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_newTerm() | Create a new term. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_editTerm() | Edit a term. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_deleteTerm() | Delete a term. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getTerm() | Retrieve a term. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getTerms() | Retrieve all terms for a taxonomy. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getTaxonomy() | Retrieve a taxonomy. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getTaxonomies() | Retrieve all taxonomies. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getUser() | Retrieve a user. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getUsers() | Retrieve users. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getProfile() | Retrieve information about the requesting user. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_editProfile() | Edit user’s profile. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPage() | Retrieve page. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_newPost() | Create a new post for any registered post type. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_editPost() | Edit a post for any registered post type. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_deletePost() | Delete a post for any registered post type. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getPost() | Retrieve a post. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::wp_getUsersBlogs() | Retrieve the blogs of the user. |
Changelog
Version | Description |
---|---|
5.7.0 | Added the $args and $server parameters. |
2.5.0 | Introduced. |