Try using $wpdb->replace();
method. It updates a row if it exists and inserts a new one if it doesn’t. See the documentation. Is that what you are looking for?
Try using $wpdb->replace();
method. It updates a row if it exists and inserts a new one if it doesn’t. See the documentation. Is that what you are looking for?