/**
  * Prepare the list of user points items for display
  *
  * @see WP_List_Table::prepare_items()
  * @since 1.0
  */
 public function prepare_items()
 {
     $this->process_actions();
     $per_page = $this->get_items_per_page('wc_points_rewards_manage_points_users_per_page');
     $args = array('orderby' => $this->get_current_orderby(), 'order' => $this->get_current_order(), 'offset' => ($this->get_pagenum() - 1) * $per_page, 'number' => $per_page, 'count_total' => true);
     // Filter: by customer
     $args = $this->add_filter_args($args);
     $this->items = WC_Points_Rewards_Manager::get_all_users_points($args);
     $this->set_pagination_args(array('total_items' => WC_Points_Rewards_Manager::get_found_user_points(), 'per_page' => $per_page, 'total_pages' => ceil(WC_Points_Rewards_Manager::get_found_user_points() / $per_page)));
 }