WPSEO_Database_Proxy::update
Updates data in the database.
Метод класса: WPSEO_Database_Proxy{}
Хуков нет.
Возвращает
int|false. False when the update request is invalid, int on number of rows changed.
Использование
$WPSEO_Database_Proxy = new WPSEO_Database_Proxy(); $WPSEO_Database_Proxy->update( $data, $where, $format, $where_format );
- $data(массив) (обязательный)
- Data to update on the table.
- $where(массив) (обязательный)
- Where condition as key => value array.
- $format(массив|строка|null)
- Data prepare format.
По умолчанию:null - $where_format(массив|строка|null)
- Where prepare format.
По умолчанию:null
Код WPSEO_Database_Proxy::update() WPSEO Database Proxy::update Yoast 28.0
public function update( array $data, array $where, $format = null, $where_format = null ) {
$this->pre_execution();
$result = $this->database->update( $this->get_table_name(), $data, $where, $format, $where_format );
$this->post_execution();
return $result;
}