WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/delete post thumbnail

Description

Delete the post thumbnail.

Usage

<?php delete_post_thumbnail$post ); ?>

Parameters

$post
(int|object) (required) Post ID or object where thumbnail should be deleted.
Default: None

Return Values

(boolean) 
False for failure. True for success.

Change Log

Source File

delete_post_thumbnail() is located in wp-includes/post.php.

Related

set_post_thumbnail()

See also index of Function Reference and index of Template Tags.