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



post_updated ›

Since3.0.0
已弃用n/a
do_action( 'post_updated', $post_ID, $post_after, $post_before )
参数: (3)
  • (int) $post_ID Post ID.
    Required: Yes
  • (WP_Post) $post_after Post object following the update.
    Required: Yes
  • (WP_Post) $post_before Post object before the update.
    Required: Yes
定义在:
文档:

Fires once an existing post has been updated.





源码

do_action( 'post_updated', $post_ID, $post_after, $post_before );