Advertisement
verygoodplugins

Untitled

May 15th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. // Count customers
  2. $args = array(
  3.     'role'      => 'Customer',
  4.     'fields'    => 'ID'
  5.     );
  6.  
  7. $customers = get_users($args);
  8.  
  9. echo count($customers) + 35000;
  10.  
  11.  
  12. // Count orders
  13. $args = array(
  14.     'post_type' => 'shop_order',
  15.     'fields'    => 'ID',
  16.     'nopaging'  => true
  17.     );
  18.  
  19. $orders = get_posts($args);
  20.  
  21. echo count($orders) + 35000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement