edit_post
do_action( ‘edit_post’, int $post_ID , WP_Post $post )
动作钩子::更新现有帖子后激发。
Action Hook: Fires once an existing post has been updated.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$post_ID | (int) | 邮政编码。 |
$post | (WP_Post) | Post对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.2.0 | wp-includes/post.php:4105 | 4 | 0 |
edit_post 为WP2原创文章,链接:https://www.wp2.cn/hook/edit_post/