WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/delete post thumbnail

Contents

Description

Delete the post thumbnail.

Usage

<?php delete_post_thumbnail$post ); ?>

Parameters

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

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.