$post->post_type, refers to the post type slug. Possible hook names include: <ul> <li>save_post_post</li> <li>save_post_page</li> </ul>$post_idint$postWP_Post$updateboolwp-includes/class-wp-customize-manager.php:3115WP_Customize_Manager::trash_changeset_post()wp-includes/post.php:5099wp_insert_post()wp-includes/post.php:5281wp_publish_post() * @since 3.7.0 * * @param int $post_id Post ID. * @param WP_Post $post Post object. * @param bool $update Whether this is an existing post being updated. */ do_action( "save_post_{$post->post_type}", $post_id, $post, $update ); /** * Fires once a post has been saved. * * @since 1.5.0 *Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.