ありがとうございます。
例えば、wcrp_seek_order関数なら
$query = $wpdb->prepare(“SELECT SUBSTR(order_date,1,4) AS oyear,SUBSTR(order_date,6,2) AS omonth FROM $tableName WHERE 0 = LOCATE(%s, order_status) AND 0 = LOCATE(%s, order_status) GROUP BY SUBSTR(order_date,1,7)”, ‘cancel’, ‘estimate’);
↓
$query = $wpdb->prepare(“SELECT SUBSTR(order_date,1,4) AS oyear,SUBSTR(order_date,6,2) AS omonth FROM $tableName WHERE 0 = LOCATE(%s, order_status) AND 0 = LOCATE(%s, order_status) AND 0 = LOCATE(%s, order_status) GROUP BY SUBSTR(order_date,1,7)”, ‘cancel’, ‘estimate’,’noreceipt’);
とかで大丈夫そうですかね?