WPDev.one
Core Function
View Source on Trac ↗

delete_post_thumbnail()

delete_post_thumbnail( mixed $post )

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

Parameters 1 required

Name / Type Description
(int

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

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
3.3.0
Source File
wp-includes/post.php
Advertisement