Codex

update_row

Updates a row in the given table.

Parameters

  • string $table_name — Name of the table to update the data.
  • array $where — Array of where clauses to narrow down the rows to update.
  • array $data — Array of data to update the row.

Returns

  • false|int — The ID for the row if successful or false if unsuccessful.

Since: 2.0

Source

  • /includes/classes/base/class-database.php — 54