一旦帖子被保存就会触发。
原型
do_action( 'save_post', int $post_ID, WP_Post $post, bool $update )
参数
$post_ID
(int)
帖子ID。
$post
(WP_Post)
发布对象。
$update
(bool)
这是否是现有的帖子正在更新。
源文件
路径:wp-includes/post.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/save_post/