wordpress optionsレコードの削除
452 ワード
global $wpdb;
$rs = $wpdb->get_col("SELECT option_value as s FROM ".$wpdb->prefix."options WHERE option_name like 'avatar of %';");
echo "<pre>";print_r($rs);echo "</pre>";
$flag = $wpdb->query("DELETE FROM ".$wpdb->prefix."options WHERE option_name like 'avatar of %' ");
echo "PS:Remove ".$flag." records!!!";