Yoast\WP\SEO\Repositories
SEO_Links_Repository::delete_many_by_id()
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() SEO Links Repository::delete many by id Yoast 24.3
public function delete_many_by_id( $ids ) { return $this->query() ->where_in( 'id', $ids ) ->delete_many(); }