首页 WordPress函数大全 delete_post_thumbnail()

delete_post_thumbnail()

2020-05-01 / 3910阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

delete_post_thumbnail( int|WP_Post $post )

Removes the thumbnail (featured image) from the given post.

描述

参数

$post

(int|WP_Post)
(Required)
Post ID or post object from which the thumbnail should be removed.

返回

(bool) True on success, false on failure.

大家谈论
    我的见解