1. 首页
  2. WordPress钩子手册

edit_post_{$post->post_type}

do_action( “edit_post_{$post->post_type}”, int $post_ID, WP_Post $post )

动作钩子::更新现有帖子后激发。
Action Hook: Fires once an existing post has been updated.

目录锚点:#说明#参数#源码


说明(Description)

钩子名的动态部分,$post->post_type,是指post类型的slug。


参数(Parameters)

参数 类型 说明
$post_ID (int) 邮政编码。
$post (WP_Post) Post对象。

源码(Source)


更新版本 源码位置 使用 被使用
5.1.0 wp-includes/post.php:4095 4 0

edit_post_{$post->post_type} 为WP2原创文章,链接:https://www.wp2.cn/hook/edit_post_post-post_type/