Yoast\WP\SEO\Repositories

SEO_Links_Repository::delete_many_by_id()publicYoast 1.0

Deletes all seo links for the given ids.

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

Хуков нет.

Возвращает

true|false. Whether or not the delete was succesfull.

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

$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 19.11

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