Unfortunately update helper only handles such simple equals conditions:
$wheres[] = "`$field` = {$form}";
For more complex queries you’ll have to form SQL yourself and use wpdb->query()
method to run it as arbitrary query.
Unfortunately update helper only handles such simple equals conditions:
$wheres[] = "`$field` = {$form}";
For more complex queries you’ll have to form SQL yourself and use wpdb->query()
method to run it as arbitrary query.