xmlrpc_call
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
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
xmlrpc_call
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 );