Skip to content

Instantly share code, notes, and snippets.

@nielslange

nielslange/functions.php

Last active Jan 4, 2021
Embed
What would you like to do?
WordPress: Bulk-delete featured images
<?php
global $wpdb;
$wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key = '_thumbnail_id'" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment