delete_post_thumbnail()
delete_post_thumbnail( int|WP_Post $post )
从给定的帖子中删除缩略图(特色图片)。
Removes the thumbnail (featured image) from the given post.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$post | (int | WP_Post) | 必需 | 从中删除缩略图的Post ID或Post对象。 |
返回(Return)
(bool)成功时正确,失败时错误。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.3.0 | wp-includes/post.php:6959 | 5 | 2 |
delete_post_thumbnail() 为WP2原创文章,链接:https://www.wp2.cn/functions/delete_post_thumbnail/