The wordpress admin has the ability to load new users using the PHPExcel library from the xlsx file. Tell me how to make it possible to view downloaded users by the number of downloads in one day? Those. so that you can sort all users who are uploaded on the same day but at different times. For one download, a different number of users can be imported. I did this: an array of $ users, these are already downloaded users, obtained from the database:

  $ users = $ wpdb-> get_results ($ query, 'ARRAY_A'); 
  foreach ($ users as $ user) {
     $ date = explode ('', $ user ['user_registered']) [0];
     unset ($ user ['user_registered']);
     $ userData [$ date] [] = $ user;
 } 

But so users are only sorted on a specific day. And in one day there can be several downloads. Tell me how to sort users by the number of downloads per day?

  • Is there anything in the table with users about the creation time of users? Or did you not even watch? - Stanislav Belichenko
  • This is the standard wp_users table, yes, there is a user_registered field in which there is a load time. But the start and end time of one download may be different, due to the large number of downloadable users - word
  • the difference between the start and end of a single download can be in a few seconds or a few minutes - word
  • you need the above code $ userData [$ date] [] = $ user; replace with something like this: - word
  • $ userData [$ upload] = $ user; - word

0