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



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

Since5.1.0
Deprecatedn/a
do_action( "edit_post_{$post->post_type}", $post_id, $post )
Parameters: (2)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
Defined at:
Codex:

Fires once an existing post has been updated.

The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug. Possible hook names include: - `edit_post_post` - `edit_post_page`




Source

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