delete_post
do_action( ‘delete_post’, int $postid )
动作钩子::在从数据库中删除帖子之前立即激发。
Action Hook: Fires immediately before a post is deleted from the database.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$postid | (int) | 邮政编码。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.2.0 | wp-includes/post.php:3036 | 2 | 0 |
delete_post 为WP2原创文章,链接:https://www.wp2.cn/hook/delete_post/