wpseek.com
WordPress开发者和主题制作者的搜索引擎



save_post_{$post->post_type} › WordPress动作钩子

Since3.7.0
已弃用n/a
› do_action( "save_post_{$post->post_type}", $post_id, $post, $update )
参数: (3)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
定义在:
文档:

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`




源码

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