redirection_request_server

redirection_request_server

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.4.2

apply_filters('redirection_request_server') is found 1 times:

  • /models/request.php line 83
    		if ( isset( $_SERVER['SERVER_NAME'] ) && is_string( $_SERVER['SERVER_NAME'] ) ) {
    			$host = sanitize_text_field( $_SERVER['SERVER_NAME'] );
    		}
    
    		return apply_filters( 'redirection_request_server', $host );
    	}
    
    	/**
    	 * Get the request server name (from $_SERVER['HTTP_HOST])
    	 *
    	 * @return string