WPSEO_Bulk_List_Table::prepare_items()
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();
Код WPSEO_Bulk_List_Table::prepare_items() WPSEO Bulk List Table::prepare items Yoast 24.6
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. $this->set_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). $this->get_meta_data(); }