redirect_this_site

Ensure that the current site's domain is listed in the allowed redirect host list.

Description

(array) redirect_this_site( (string) $deprecated = '' ); 

Returns (array)

The current site's domain

Parameters (1)

0. $deprecated — Optional. (string) => ''
The deprecated.

Usage

  1. if ( !function_exists( 'redirect_this_site' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4. // The deprecated. 
  5. $deprecated = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = redirect_this_site($deprecated); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. function redirect_this_site( $deprecated = '' ) { 
  2. return array( get_network()->domain );