wp_is_site_url_using_https example

'test'        => 'https_status',
        );

        if ( ! wp_is_using_https() ) {
            /* * If the website is not using HTTPS, provide more information * about whether it is supported and how it can be enabled. */
            $result['status'] = 'recommended';
            $result['label']  = __( 'Your website does not use HTTPS' );

            if ( wp_is_site_url_using_https() ) {
                if ( is_ssl() ) {
                    $result['description'] = sprintf(
                        '<p>%s</p>',
                        sprintf(
                            /* translators: %s: URL to Settings > General > Site Address. */
                            __( 'You are accessing this website using HTTPS, but your <a href="%s">Site Address</a> is not set up to use HTTPS by default.' ),
                            esc_url( admin_url( 'options-general.php' ) . '#home' )
                        )
                    );
                } else {
                    $result['description'] = sprintf(
                        

function wp_is_using_https() {
    if ( ! wp_is_home_url_using_https() ) {
        return false;
    }

    return wp_is_site_url_using_https();
}

/** * Checks whether the current site URL is using HTTPS. * * @since 5.7.0 * @see home_url() * * @return bool True if using HTTPS, false otherwise. */
function wp_is_home_url_using_https() {
    
Home | Imprint | This part of the site doesn't use cookies.