edit_post()
edit_post( array $post_data = null )
使用$u post中提供的值更新现有文章。
Update an existing post with values provided in $_POST.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$post_data | (array) | 可选 |
返回(Return)
(int)邮政编码。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.5.0 | wp-admin/includes/post.php:229 | 6 | 40 |
edit_post() 为WP2原创文章,链接:https://www.wp2.cn/functions/edit_post-2/