habibjutt
8/3/2016 - 10:24 AM

return the number of users in database.php

    global $wpdb;


    /*
     * RETURN THE NUMBER OF THE USERS IN THE DATABASE
     */

      $user_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->users" );
      die("User count is : " . $user_count);