redirection_request_server

redirection_request_server

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

See hook in core

Displaying hooks found in version: redirection.5.5.2

apply_filters('redirection_request_server') is found 1 times:

  • /models/request.php line 83
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
        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