Yoast\WP\SEO\Bulk_Editor\Domain\Posts
Posts_Query::__construct
The constructor.
Метод класса: Posts_Query{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Posts_Query = new Posts_Query(); $Posts_Query->__construct( $content_type, $page, $per_page, $search, $statuses, ?int $author_id );
- $content_type(строка) (обязательный)
- The content type to get posts for.
- $page(int) (обязательный)
- The page of results to get, starting at 1.
- $per_page(int) (обязательный)
- The number of posts per page.
- $search(строка) (обязательный)
- The search term, or an empty string for no search.
- $statuses(array
) (обязательный) - The post statuses to include.
- ?int $author_id
- .
По умолчанию:null
Код Posts_Query::__construct() Posts Query:: construct Yoast 28.3
public function __construct(
string $content_type,
int $page,
int $per_page,
string $search,
array $statuses,
?int $author_id = null
) {
$this->content_type = $content_type;
$this->page = $page;
$this->per_page = $per_page;
$this->search = $search;
$this->statuses = $statuses;
$this->author_id = $author_id;
}