Core Function
View Source on Trac ↗ ms_load_current_site_and_network()
ms_load_current_site_and_network( mixed $domain, mixed $path, mixed $subdomain = false ) Identifies the network and site of a requested domain and path and populates the
Parameters 3 required
| Name / Type | Description |
|---|---|
| $domain string | The requested domain. Required |
| $path string | The requested path. Required |
| bool | $subdomain Optional. Whether a subdomain (true) or subdirectory (false) configuration. Default false. Required |
Return Value
((bool)
(bool | string) True if bootstrap successfully populated `$current_blog` and `$current_site`.
False if bootstrap could not be properly completed.
Redirect URL if parts exist, but the request as a whole can not be fulfilled.
Function Information
Since Version
4.6.0
Source File
wp-includes/ms-load.php
Advertisement