昨日当年

你一双澄澈眼眸 便使我颠沛中毕生富有

WordPress删除所有的特色图片


mysql语句:

DELETE FROM wp_postmeta WHERE meta_key = '_thumbnail_id';

PHP代码:

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