钩子文档

xmlrpc_call_success_blogger_newPost

💡 云策文档标注

概述

此 Hook 在通过 XML-RPC Blogger API 成功创建新文章后触发,允许开发者在文章创建后执行自定义操作。

关键要点

  • Hook 名称:xmlrpc_call_success_blogger_newPost
  • 触发时机:XML-RPC Blogger API 调用成功创建新文章后
  • 参数:$post_id(新文章的 ID,整数类型)和 $args(新文章的参数数组)
  • 相关函数:wp_xmlrpc_server::blogger_newPost() 用于创建新文章
  • 引入版本:WordPress 3.4.0

📄 原文内容

Fires after a new post has been successfully created via the XML-RPC Blogger API.

Parameters

$post_idint
ID of the new post.
$argsarray
An array of new post arguments.

Source

do_action( 'xmlrpc_call_success_blogger_newPost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

Changelog

Version Description
3.4.0 Introduced.