wp_update_network_counts

函数


wp_update_network_counts ( $network_id = null )
参数
  • (int|null)
    $network_id
    ID of the network. Default is the current network.
    Required:
    Default: null
定义位置
  • wp-includes/ms-functions.php
    , line 2417
引入
3.1.0
弃用

Updates the network-wide counts for the current network.

function wp_update_network_counts( $network_id = null ) {
	wp_update_network_user_counts( $network_id );
	wp_update_network_site_counts( $network_id );
}