确保当前站点的域列在允许的重定向主机列表中。
原型
redirect_this_site( array|string $deprecated = '' )
参数
$deprecated
(array|string)
(Optional)
不曾用过。
返回值
(array)
当前网站的域名
源文件
路径:wp-includes/ms-functions.php
<?php
...
function redirect_this_site( $deprecated = '' ) {
return array( get_network()->domain );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/redirect_this_site/