Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_sitestats [ WordPress Function ]

get_sitestats ( No parameters )
Uses:
Returns:
  • (array) Site and user count for the network.
Defined at:



Gets the network's site and user counts.

Source


<?php
function get_sitestats() {
    global 
$wpdb;

    
$stats = array(
        
'blogs' => get_blog_count(),
        
'users' => get_user_count(),
    );

    return 
$stats;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics