PHP Counting sites
-
I am trying (for the last three hours) to write a PHP script that will simply count the number of sites/blogs a user has created on my site and set it to a variable so I can compare it.
$count = get_sites(array(‘site_in’ => $user_id, ‘count’ => true));
This is what I have. It only returns the number 2. regardless of how many sites are actually created by a user.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Counting sites’ is closed to new replies.