WPSEO_Database_Proxy::delete()
Deletes a record from the database.
Метод класса: WPSEO_Database_Proxy{}
Хуков нет.
Возвращает
false|int
.
Использование
$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 22.4
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; }