This snippet demonstrates how to update data in a custom table using $wpdb->update()
.
global $wpdb;
$table_name = $wpdb->prefix . 'my_custom_table'; // Replace with your custom table name
$data = array(
'column1' => 'new_value1',
);
$where = array('column2' => 'some_value');
$wpdb->update($table_name, $data, $where);