wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_blog_count › WordPress Function

Desde
Obsoleton/a
get_blog_count ( $network_id = null )
Parâmetros:
  • (int|null) $network_id ID of the network. Default is the current network.
    Required: No
    Padrão: null
Retorna:
  • (int) Number of active sites on the network.
Definido em:
Codex:
Log de mudanças:
  • 3.7.0
  • 4.8.0

Gets the number of active sites on the installation.

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


Fonte

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