get_current_network_id

Advertisement

Summery Summery

Retrieves the current network ID.

Syntax Syntax

get_current_network_id()

Return Return

(int) The ID of the current network.

Source Source

File: wp-includes/load.php

	} elseif ( defined( 'WP_USER_ADMIN' ) ) {
		return WP_USER_ADMIN;
	}

	return false;
}

/**
 * If Multisite is enabled.
 *
 * @since 3.0.0
 *
 * @return bool True if Multisite is enabled, false otherwise.

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply