WPSEO_Database_Proxy::delete
Deletes a record from the database.
Метод класса: WPSEO_Database_Proxy{}
Хуков нет.
Возвращает
int|false.
Использование
$WPSEO_Database_Proxy = new WPSEO_Database_Proxy(); $WPSEO_Database_Proxy->delete( $where, $format );
- $where(массив) (обязательный)
- Where clauses for the query.
- $format(массив|строка|null)
- Formats for the data.
По умолчанию:null
Код WPSEO_Database_Proxy::delete() WPSEO Database Proxy::delete Yoast 28.2
public function delete( array $where, $format = null ) {
$this->pre_execution();
$result = $this->database->delete( $this->get_table_name(), $where, $format );
$this->post_execution();
return $result;
}