wpseek.com
A WordPress-centric search engine for devs and theme authors



save_post_{$post->post_type} › WordPress Action Hooks

Since3.7.0
Deprecatedn/a
do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
Parameters: (3)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    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. Possible hook names include: - `save_post_post` - `save_post_page`




Source

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