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



wp_after_insert_post › WordPress动作钩子

Since5.6.0
已弃用n/a
› do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before )
参数: (4)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
  • () post_before Null for new posts, the WP_Post object prior to the update for updated posts.
    Required: Yes
定义在:
文档:

Fires once a post, its terms and meta data has been saved.





源码

do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );