钩子文档

xmlrpc_call_success_mw_editPost

💡 云策文档标注

概述

xmlrpc_call_success_mw_editPost 是一个 WordPress Hook,在通过 XML-RPC MovableType API 成功更新文章后触发。它允许开发者在文章更新后执行自定义操作。

关键要点

  • 触发时机:文章通过 XML-RPC MovableType API 成功更新后
  • 参数:$post_id(文章 ID,整数类型)和 $args(更新参数数组)
  • 相关函数:wp_xmlrpc_server::mw_editPost() 用于编辑文章
  • 引入版本:WordPress 3.4.0

代码示例

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

📄 原文内容

Fires after a post has been successfully updated via the XML-RPC MovableType API.

Parameters

$post_idint
ID of the updated post.
$argsarray
An array of arguments to update the post.

Source

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

Changelog

Version Description
3.4.0 Introduced.