xmlrpc_call хук-событиеWP 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.

Использование

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(строка)
The method name.
$args(массив|строка)
The escaped arguments passed to the method.
$server(wp_xmlrpc_server)
The XML-RPC server instance.

Список изменений

С версии 2.5.0 Введена.
С версии 5.7.0 Added the $args and $server parameters.

Где вызывается хук

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 734
do_action( 'xmlrpc_call', 'wp.getUsersBlogs', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1344
do_action( 'xmlrpc_call', 'wp.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1745
do_action( 'xmlrpc_call', 'wp.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1828
do_action( 'xmlrpc_call', 'wp.deletePost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1928
do_action( 'xmlrpc_call', 'wp.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 1989
do_action( 'xmlrpc_call', 'wp.getPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2088
do_action( 'xmlrpc_call', 'wp.newTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2193
do_action( 'xmlrpc_call', 'wp.editTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2309
do_action( 'xmlrpc_call', 'wp.deleteTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2388
do_action( 'xmlrpc_call', 'wp.getTerm', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2453
do_action( 'xmlrpc_call', 'wp.getTerms', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2559
do_action( 'xmlrpc_call', 'wp.getTaxonomy', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2617
do_action( 'xmlrpc_call', 'wp.getTaxonomies', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2703
do_action( 'xmlrpc_call', 'wp.getUser', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2766
do_action( 'xmlrpc_call', 'wp.getUsers', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2846
do_action( 'xmlrpc_call', 'wp.getProfile', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2896
do_action( 'xmlrpc_call', 'wp.editProfile', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 2985
do_action( 'xmlrpc_call', 'wp.getPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3028
do_action( 'xmlrpc_call', 'wp.getPages', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3083
do_action( 'xmlrpc_call', 'wp.newPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3120
do_action( 'xmlrpc_call', 'wp.deletePage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3187
do_action( 'xmlrpc_call', 'wp.editPage', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3250
do_action( 'xmlrpc_call', 'wp.getPageList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3311
do_action( 'xmlrpc_call', 'wp.getAuthors', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3355
do_action( 'xmlrpc_call', 'wp.getKeywords', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3405
do_action( 'xmlrpc_call', 'wp.newCategory', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3488
do_action( 'xmlrpc_call', 'wp.deleteCategory', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3545
do_action( 'xmlrpc_call', 'wp.suggestCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3591
do_action( 'xmlrpc_call', 'wp.getComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3644
do_action( 'xmlrpc_call', 'wp.getComments', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3739
do_action( 'xmlrpc_call', 'wp.deleteComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 3807
do_action( 'xmlrpc_call', 'wp.editComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4000
do_action( 'xmlrpc_call', 'wp.newComment', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4054
do_action( 'xmlrpc_call', 'wp.getCommentStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4096
do_action( 'xmlrpc_call', 'wp.getCommentCount', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4138
do_action( 'xmlrpc_call', 'wp.getPostStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4173
do_action( 'xmlrpc_call', 'wp.getPageStatusList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4366
do_action( 'xmlrpc_call', 'wp.getMediaItem', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4419
do_action( 'xmlrpc_call', 'wp.getMediaLibrary', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4475
do_action( 'xmlrpc_call', 'wp.getPostFormats', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4555
do_action( 'xmlrpc_call', 'wp.getPostType', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4612
do_action( 'xmlrpc_call', 'wp.getPostTypes', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4682
do_action( 'xmlrpc_call', 'wp.getRevisions', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4756
do_action( 'xmlrpc_call', 'wp.restoreRevision', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4827
do_action( 'xmlrpc_call', 'blogger.getUsersBlogs', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4911
do_action( 'xmlrpc_call', 'blogger.getUserInfo', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 4961
do_action( 'xmlrpc_call', 'blogger.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5018
do_action( 'xmlrpc_call', 'blogger.getRecentPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5108
do_action( 'xmlrpc_call', 'blogger.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5185
do_action( 'xmlrpc_call', 'blogger.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5259
do_action( 'xmlrpc_call', 'blogger.deletePost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5347
do_action( 'xmlrpc_call', 'metaWeblog.newPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 5722
do_action( 'xmlrpc_call', 'metaWeblog.editPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6059
do_action( 'xmlrpc_call', 'metaWeblog.getPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6200
do_action( 'xmlrpc_call', 'metaWeblog.getRecentPosts', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6321
do_action( 'xmlrpc_call', 'metaWeblog.getCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6382
do_action( 'xmlrpc_call', 'metaWeblog.newMediaObject', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6501
do_action( 'xmlrpc_call', 'mt.getRecentPostTitles', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6563
do_action( 'xmlrpc_call', 'mt.getCategoryList', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6621
do_action( 'xmlrpc_call', 'mt.getPostCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6668
do_action( 'xmlrpc_call', 'mt.setPostCategories', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6697
do_action( 'xmlrpc_call', 'mt.supportedMethods', array(), $this );
wp-includes/class-wp-xmlrpc-server.php 6709
do_action( 'xmlrpc_call', 'mt.supportedTextFilters', array(), $this );
wp-includes/class-wp-xmlrpc-server.php 6735
do_action( 'xmlrpc_call', 'mt.getTrackbackPings', $post_ID, $this );
wp-includes/class-wp-xmlrpc-server.php 6792
do_action( 'xmlrpc_call', 'mt.publishPost', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 6834
do_action( 'xmlrpc_call', 'pingback.ping', $args, $this );
wp-includes/class-wp-xmlrpc-server.php 7076
do_action( 'xmlrpc_call', 'pingback.extensions.getPingbacks', $url, $this );

Где используется хук в WordPress

Использование не найдено.