Skip to content

Instantly share code, notes, and snippets.



Last active Jan 4, 2021
What would you like to do?
WordPress: Bulk-delete featured images
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
You can’t perform that action at this time.