Un motore di ricerca WordPress per sviluppatori e autori di temi



get_blog_count ›

Da3.7.0
Deprecaton/a
get_blog_count ( $network_id = null )
Parametri:
  • (int|null) $network_id ID of the network. Default is the current network.
    Richiesto: No
    Default: null
Ritorna:
  • (int) Number of active sites on the network.
Definito a:
Codex:
ChangeLog:
  • 4.8.0
  • MU

The number of active sites on your installation.

The count is cached and updated twice daily. This is not a live count.



Sorgenti

function get_blog_count( $network_id = null ) {
	return get_network_option( $network_id, 'blog_count' );
}