On this page
redirect_this_site( array|string $deprecated = '' ): string[]
Ensures that the current site’s domain is listed in the allowed redirect host list.
Description
See also
Parameters
$deprecatedarray|string Optional-
Not used.
Default:
''
Return
string[] An array containing the current site's domain.
- string
The current site's domain.
Source
File: wp-includes/ms-functions.php. View all references
function redirect_this_site( $deprecated = '' ) {
return array( get_network()->domain );
}
Related
Uses
| Uses | Description |
|---|---|
| get_network() wp-includes/ms-network.php | Retrieves network data given a network ID or network object. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/redirect_this_site