WPSEO_Bulk_List_Table::prepare_items()publicYoast 1.0

Preparing the requested pagerows and setting the needed variables.

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

Хуков нет.


null. Ничего (null).


$WPSEO_Bulk_List_Table = new WPSEO_Bulk_List_Table();

Код WPSEO_Bulk_List_Table::prepare_items() Yoast 22.4

public function prepare_items() {

	$post_type_clause = $this->get_post_type_clause();
	$all_states       = $this->get_all_states();
	$subquery         = $this->get_base_subquery();

	// Setting the column headers.

	// Count the total number of needed items and setting pagination given $total_items.
	$total_items = $this->count_items( $subquery, $all_states, $post_type_clause );
	$this->set_pagination( $total_items );

	// Getting items given $query.
	$query = $this->parse_item_query( $subquery, $all_states, $post_type_clause );
	$this->get_items( $query );

	// Get the metadata for the current items ($this->items).