A WordPress-centric search engine for devs and theme authors



save_post_{$post->post_type} ›

Since3.7.0
Deprecatedn/a
do_action( "save_post_{$post->post_type}", $post_ID, $post, $update )
Parameters: (3)
  • (int) $post_ID Post ID.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
  • (bool) $update Whether this is an existing post being updated or not.
    Required: Yes
Defined at:
Codex:

Fires once a post has been saved.

The dynamic portion of the hook name, $post->post_type, refers to the post type slug.





Source

do_action( "save_post_{$post->post_type}", $post_ID, $post, $update );