get_site_url example



    $message = sprintf(
        /* translators: New site notification email. 1: User login, 2: Site URL, 3: Site title. */
        __(
            'New site created by %1$s Address: %2$s Name: %3$s'
        ),
        $user->user_login,
        get_site_url( $site->id ),
        get_blog_option( $site->id, 'blogname' )
    );

    $header = sprintf(
        'From: "%1$s" <%2$s>',
        _x( 'Site Admin', 'email "From" field' ),
        $email
    );

    $new_site_email = array(
        'to'      => $email,
        

function site_url( $path = '', $scheme = null ) {
    return get_site_url( null, $path$scheme );
}

/** * Retrieves the URL for a given site where WordPress application files * (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible. * * Returns the 'site_url' option with the appropriate protocol, 'https' if * is_ssl() and 'http' otherwise. If `$scheme` is 'http' or 'https', * `is_ssl()` is overridden. * * @since 3.0.0 * * @param int|null $blog_id Optional. Site ID. Default null (current site). * @param string $path Optional. Path relative to the site URL. Default empty. * @param string|null $scheme Optional. Scheme to give the site URL context. Accepts * 'http', 'https', 'login', 'login_post', 'admin', or * 'relative'. Default null. * @return string Site URL link with optional path appended. */
Home | Imprint | This part of the site doesn't use cookies.