xmlrpc_call action-hookWP 2.5.0

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

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.

Usage

add_action( 'xmlrpc_call', 'wp_kama_xmlrpc_call_action', 10, 3 );

/**
 * Function for `xmlrpc_call` action-hook.
 * 
 * @param string           $name   The method name.
 * @param array|string     $args   The escaped arguments passed to the method.
 * @param wp_xmlrpc_server $server The XML-RPC server instance.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_action( $name, $args, $server ){

	// action...
}
$name(string)
The method name.
$args(array|string)
The escaped arguments passed to the method.
$server(wp_xmlrpc_server)
The XML-RPC server instance.

Changelog

Since 2.5.0 Introduced.
Since 5.7.0 Added the $args and $server parameters.

Where the hook is called

wp_xmlrpc_server::wp_getUsersBlogs()
xmlrpc_call
wp_xmlrpc_server::wp_newPost()
xmlrpc_call
wp_xmlrpc_server::wp_editPost()
xmlrpc_call
wp_xmlrpc_server::wp_deletePost()
xmlrpc_call
wp_xmlrpc_server::wp_getPost()
xmlrpc_call
wp_xmlrpc_server::wp_getPosts()
xmlrpc_call
wp_xmlrpc_server::wp_newTerm()
xmlrpc_call
wp_xmlrpc_server::wp_editTerm()
xmlrpc_call
wp_xmlrpc_server::wp_deleteTerm()
xmlrpc_call
wp_xmlrpc_server::wp_getTerm()
xmlrpc_call
wp_xmlrpc_server::wp_getTerms()
xmlrpc_call
wp_xmlrpc_server::wp_getTaxonomy()
xmlrpc_call
wp_xmlrpc_server::wp_getTaxonomies()
xmlrpc_call
wp_xmlrpc_server::wp_getUser()
xmlrpc_call
wp_xmlrpc_server::wp_getUsers()
xmlrpc_call
wp_xmlrpc_server::wp_getProfile()
xmlrpc_call
wp_xmlrpc_server::wp_editProfile()
xmlrpc_call
wp_xmlrpc_server::wp_getPage()
xmlrpc_call
wp_xmlrpc_server::wp_getPages()
xmlrpc_call
wp_xmlrpc_server::wp_newPage()
xmlrpc_call
wp_xmlrpc_server::wp_deletePage()
xmlrpc_call
wp_xmlrpc_server::wp_editPage()
xmlrpc_call
wp_xmlrpc_server::wp_getPageList()
xmlrpc_call
wp_xmlrpc_server::wp_getAuthors()
xmlrpc_call
wp_xmlrpc_server::wp_getTags()
xmlrpc_call
wp_xmlrpc_server::wp_newCategory()
xmlrpc_call
wp_xmlrpc_server::wp_deleteCategory()
xmlrpc_call
wp_xmlrpc_server::wp_suggestCategories()
xmlrpc_call
wp_xmlrpc_server::wp_getComment()
xmlrpc_call
wp_xmlrpc_server::wp_getComments()
xmlrpc_call
wp_xmlrpc_server::wp_deleteComment()
xmlrpc_call
wp_xmlrpc_server::wp_editComment()
xmlrpc_call
wp_xmlrpc_server::wp_newComment()
xmlrpc_call
wp_xmlrpc_server::wp_getCommentStatusList()
xmlrpc_call
wp_xmlrpc_server::wp_getCommentCount()
xmlrpc_call
wp_xmlrpc_server::wp_getPostStatusList()
xmlrpc_call
wp_xmlrpc_server::wp_getPageStatusList()
xmlrpc_call
wp_xmlrpc_server::wp_getMediaItem()
xmlrpc_call
wp_xmlrpc_server::wp_getMediaLibrary()
xmlrpc_call
wp_xmlrpc_server::wp_getPostFormats()
xmlrpc_call
wp_xmlrpc_server::wp_getPostType()
xmlrpc_call
wp_xmlrpc_server::wp_getPostTypes()
xmlrpc_call
wp_xmlrpc_server::wp_getRevisions()
xmlrpc_call
wp_xmlrpc_server::wp_restoreRevision()
xmlrpc_call
wp_xmlrpc_server::blogger_getUsersBlogs()
xmlrpc_call
wp_xmlrpc_server::blogger_getUserInfo()
xmlrpc_call
wp_xmlrpc_server::blogger_getPost()
xmlrpc_call
wp_xmlrpc_server::blogger_getRecentPosts()
xmlrpc_call
wp_xmlrpc_server::blogger_newPost()
xmlrpc_call
wp_xmlrpc_server::blogger_editPost()
xmlrpc_call
wp_xmlrpc_server::blogger_deletePost()
xmlrpc_call
wp_xmlrpc_server::mw_newPost()
xmlrpc_call
wp_xmlrpc_server::mw_editPost()
xmlrpc_call
wp_xmlrpc_server::mw_getPost()
xmlrpc_call
wp_xmlrpc_server::mw_getRecentPosts()
xmlrpc_call
wp_xmlrpc_server::mw_getCategories()
xmlrpc_call
wp_xmlrpc_server::mw_newMediaObject()
xmlrpc_call
wp_xmlrpc_server::mt_getRecentPostTitles()
xmlrpc_call
wp_xmlrpc_server::mt_getCategoryList()
xmlrpc_call
wp_xmlrpc_server::mt_getPostCategories()
xmlrpc_call
wp_xmlrpc_server::mt_setPostCategories()
xmlrpc_call
wp_xmlrpc_server::mt_supportedMethods()
xmlrpc_call
wp_xmlrpc_server::mt_supportedTextFilters()
xmlrpc_call
wp_xmlrpc_server::mt_getTrackbackPings()
xmlrpc_call
wp_xmlrpc_server::mt_publishPost()
xmlrpc_call
wp_xmlrpc_server::pingback_ping()
xmlrpc_call
wp_xmlrpc_server::pingback_extensions_getPingbacks()
xmlrpc_call
wp-includes/class-wp-xmlrpc-server.php 736
do_action( 'xmlrpc_call', 'wp.getUsersBlogs', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1347
do_action( 'xmlrpc_call', 'wp.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1748
do_action( 'xmlrpc_call', 'wp.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1831
do_action( 'xmlrpc_call', 'wp.deletePost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1932
do_action( 'xmlrpc_call', 'wp.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1993
do_action( 'xmlrpc_call', 'wp.getPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2092
do_action( 'xmlrpc_call', 'wp.newTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2197
do_action( 'xmlrpc_call', 'wp.editTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2313
do_action( 'xmlrpc_call', 'wp.deleteTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2392
do_action( 'xmlrpc_call', 'wp.getTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2457
do_action( 'xmlrpc_call', 'wp.getTerms', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2564
do_action( 'xmlrpc_call', 'wp.getTaxonomy', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2622
do_action( 'xmlrpc_call', 'wp.getTaxonomies', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2708
do_action( 'xmlrpc_call', 'wp.getUser', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2771
do_action( 'xmlrpc_call', 'wp.getUsers', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2851
do_action( 'xmlrpc_call', 'wp.getProfile', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2901
do_action( 'xmlrpc_call', 'wp.editProfile', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2990
do_action( 'xmlrpc_call', 'wp.getPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3033
do_action( 'xmlrpc_call', 'wp.getPages', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3088
do_action( 'xmlrpc_call', 'wp.newPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3125
do_action( 'xmlrpc_call', 'wp.deletePage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3194
do_action( 'xmlrpc_call', 'wp.editPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3257
do_action( 'xmlrpc_call', 'wp.getPageList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3318
do_action( 'xmlrpc_call', 'wp.getAuthors', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3362
do_action( 'xmlrpc_call', 'wp.getKeywords', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3412
do_action( 'xmlrpc_call', 'wp.newCategory', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3499
do_action( 'xmlrpc_call', 'wp.deleteCategory', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3556
do_action( 'xmlrpc_call', 'wp.suggestCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3602
do_action( 'xmlrpc_call', 'wp.getComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3658
do_action( 'xmlrpc_call', 'wp.getComments', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3753
do_action( 'xmlrpc_call', 'wp.deleteComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3821
do_action( 'xmlrpc_call', 'wp.editComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4014
do_action( 'xmlrpc_call', 'wp.newComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4068
do_action( 'xmlrpc_call', 'wp.getCommentStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4110
do_action( 'xmlrpc_call', 'wp.getCommentCount', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4152
do_action( 'xmlrpc_call', 'wp.getPostStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4187
do_action( 'xmlrpc_call', 'wp.getPageStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4380
do_action( 'xmlrpc_call', 'wp.getMediaItem', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4436
do_action( 'xmlrpc_call', 'wp.getMediaLibrary', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4492
do_action( 'xmlrpc_call', 'wp.getPostFormats', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4573
do_action( 'xmlrpc_call', 'wp.getPostType', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4630
do_action( 'xmlrpc_call', 'wp.getPostTypes', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4701
do_action( 'xmlrpc_call', 'wp.getRevisions', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4775
do_action( 'xmlrpc_call', 'wp.restoreRevision', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4846
do_action( 'xmlrpc_call', 'blogger.getUsersBlogs', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4930
do_action( 'xmlrpc_call', 'blogger.getUserInfo', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4980
do_action( 'xmlrpc_call', 'blogger.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5037
do_action( 'xmlrpc_call', 'blogger.getRecentPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5127
do_action( 'xmlrpc_call', 'blogger.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5204
do_action( 'xmlrpc_call', 'blogger.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5278
do_action( 'xmlrpc_call', 'blogger.deletePost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5366
do_action( 'xmlrpc_call', 'metaWeblog.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5743
do_action( 'xmlrpc_call', 'metaWeblog.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6080
do_action( 'xmlrpc_call', 'metaWeblog.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6221
do_action( 'xmlrpc_call', 'metaWeblog.getRecentPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6342
do_action( 'xmlrpc_call', 'metaWeblog.getCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6399
do_action( 'xmlrpc_call', 'metaWeblog.newMediaObject', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6518
do_action( 'xmlrpc_call', 'mt.getRecentPostTitles', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6580
do_action( 'xmlrpc_call', 'mt.getCategoryList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6638
do_action( 'xmlrpc_call', 'mt.getPostCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6685
do_action( 'xmlrpc_call', 'mt.setPostCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6714
do_action( 'xmlrpc_call', 'mt.supportedMethods', array(), $this );
wp-includes/class-wp-xmlrpc-server.php 6726
do_action( 'xmlrpc_call', 'mt.supportedTextFilters', array(), $this );
wp-includes/class-wp-xmlrpc-server.php 6752
do_action( 'xmlrpc_call', 'mt.getTrackbackPings', $post_id, $this );
wp-includes/class-wp-xmlrpc-server.php 6809
do_action( 'xmlrpc_call', 'mt.publishPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6853
do_action( 'xmlrpc_call', 'pingback.ping', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 7109
do_action( 'xmlrpc_call', 'pingback.extensions.getPingbacks', $url, $this );

Where the hook is used in WordPress

Usage not found.