函数原型
redirect_this_site( array|string $deprecated = ” ): string[]
函数描述
Ensures that the current site’s domain is listed in the allowed redirect host list.
是否弃用
未弃用
函数参数
-
$deprecated
array|string
Optional - Not used.
Default:
''
函数返回值
string[] An array containing the current site’s domain.
- stringThe current site’s domain.
函数位置
File: wp-includes/ms-functions.php.
函数源码
function redirect_this_site( $deprecated = '' ) {
return array( get_network()->domain );
}
源码链接
变更日志
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |

