Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




delete_post_thumbnail [ WordPress Function ]

delete_post_thumbnail ( $post )
Parameters:
  • (int|object) $post Post ID or object where thumbnail should be removed from.
Returns:
  • (bool) True on success, false on failure.
Defined at:



Removes a post thumbnail.

Source


<?php
function delete_post_thumbnail$post ) {
    
$post get_post$post );
    if ( 
$post )
        return 
delete_post_meta$post->ID'_thumbnail_id' );
    return 
false;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics