Yoast\WP\SEO\Bulk_Editor\Application\Posts
Posts_Collector_Interface{}
Describes a collector that gathers a page of posts for the bulk editor.
Хуков нет.
Использование
$Posts_Collector_Interface = new Posts_Collector_Interface(); // use class methods
Методы
Код Posts_Collector_Interface{} Posts Collector Interface{} Yoast 28.3
interface Posts_Collector_Interface {
/**
* The post statuses shown in the bulk editor.
*
* @var array<string>
*/
public const STATUSES = [ 'publish', 'draft', 'pending', 'future' ];
/**
* Collects a page of posts for the given query.
*
* @param Posts_Query $query The query describing the page to collect.
*
* @return Posts_Page The collected posts together with the totals for pagination.
*/
public function get_posts( Posts_Query $query ): Posts_Page;
}