delete_post_thumbnail( int|WP_Post $post )

Remove a post thumbnail.


Parameters

$post

(Required) Post ID or post object where thumbnail should be removed from.


Return

(bool) True on success, false on failure.


Source

File: wp-includes/post.php

function delete_post_thumbnail( $post ) {
	$post = get_post( $post );
	if ( $post )
		return delete_post_meta( $post->ID, '_thumbnail_id' );
	return false;
}


Changelog

Changelog
Version Description
WP-3.3.0 Introduced.