Created
October 15, 2015 15:28
-
-
Save tjhole/4e86c84f8073790f565f to your computer and use it in GitHub Desktop.
WORDPRESS: Function.php remove all featured images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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