redirect_this_site

函数


redirect_this_site ( $deprecated = '' )
参数
  • (array|string)
    $deprecated
    Not used.
    Required:
    Default: (empty)
返回值
  • (string[]) { An array containing the current site’s domain. @type string $0 The current site’s domain. }
相关
  • wp_validate_redirect()
定义位置
  • wp-includes/ms-functions.php
    , line 2065
引入
弃用

Ensures that the current site’s domain is listed in the allowed redirect host list.

function redirect_this_site( $deprecated = '' ) {
	return array( get_network()->domain );
}