Codex

add_row

Adds a row to the specified table.

Parameters

  • string $table_name — Name of the table to add the row to.
  • array $data — Data to add to the table.

Returns

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

Since: 2.0

Source

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