Home / members / Total number of members
  • How to Total number of members

    no thumbnail sorry: Total number of members

    Adding this PHP code into your wordpress theme will display the total number of members.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    $users = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
    echo $users." members.";
    

    ( WordPress codex functions, hooks, in this snippet. )

    wp,
  • Mike Kennedy

    Do you know how you would you use Transients API to cache the total number?