Yoast\WP\SEO\Repositories

SEO_Links_Repository::delete_many_by_id │ public │ Yoast 1.0

Deletes all seo links for the given ids.

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

Хуков нет.

Возвращает

bool. Whether or not the delete was successful.

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

$SEO_Links_Repository = new SEO_Links_Repository();
$SEO_Links_Repository->delete_many_by_id( $ids );
$ids(int[]) (обязательный)
The seo link ids.

Код SEO_Links_Repository::delete_many_by_id() Yoast 28.9

public function delete_many_by_id( $ids ) {
	return $this->query()
		->where_in( 'id', $ids )
		->delete_many();
}