Fires once a post has been saved.
The dynamic portion of the hook name, $post->post_type, refers to the post type slug.
Possible hook names include:
save_post_postsave_post_page$post_idint
$postWP_Post
$updatebool
do_action( "save_post_{$post->post_type}", $post_id, $post, $update );
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/save_post_post-post_type