The codex has been updated for Sports Bench 2.0 which is slated for an early September release. This is to help those who have made their own customizations get ready for the 2.0 release which will be radically different from a code perspective. Learn more about the changes you can expect with the code in Sports Bench 2.0.

Database::update_row( $table_name, $where, $data = array() )

Updates a row in the given table.


  • 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.


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

Since: 2.0


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