Yoast\WP\SEO\Bulk_Editor\Domain\Posts
Posts_Query::has_author_filter
Returns whether posts are limited to a single author.
Метод класса: Posts_Query{}
Хуков нет.
Возвращает
bool. Whether an author restriction is set.
Использование
$Posts_Query = new Posts_Query(); $Posts_Query->has_author_filter(): bool;
Код Posts_Query::has_author_filter() Posts Query::has author filter Yoast 28.9
public function has_author_filter(): bool {
return $this->author_id !== null;
}