Yoast\WP\Lib

ORM::delete_many()publicYoast 1.0

Deletes many records from the database.

Метод класса: ORM{}

Хуков нет.

Возвращает

true|false|int. Response of wpdb::query.

Использование

$ORM = new ORM();
$ORM->delete_many();

Код ORM::delete_many() Yoast 23.5

public function delete_many() {
	// Build and return the full DELETE statement by concatenating
	// the results of calling each separate builder method.
	$query = $this->join_if_not_empty(
		' ',
		[
			'DELETE FROM',
			$this->quote_identifier( $this->table_name ),
			$this->build_where(),
		]
	);

	return self::execute( $query, $this->values );
}