Bulk Remove Featured Images from Posts/ Pages


Add this code inside functions.php of the theme file. browse the site once. and delete the code again.

global $wpdb;
$wpdb->query( "
    DELETE FROM $wpdb->postmeta 
    WHERE meta_key = '_thumbnail_id'
" );

Leave a Reply

Your email address will not be published.