wp_update_urls_to_https example

if ( 'update_https' === $action ) {
    check_admin_referer( 'wp_update_https' );

    if ( ! current_user_can( 'update_https' ) ) {
        wp_die( __( 'Sorry, you are not allowed to update this site to HTTPS.' ), 403 );
    }

    if ( ! wp_is_https_supported() ) {
        wp_die( __( 'It looks like HTTPS is not supported for your website at this point.' ) );
    }

    $result = wp_update_urls_to_https();

    wp_redirect( add_query_arg( 'https_updated', (int) $resultwp_get_referer() ) );
    exit;
}

$health_check_site_status = WP_Site_Health::get_instance();

get_current_screen()->add_help_tab(
    array(
        'id'      => 'overview',
        'title'   => __( 'Overview' ),
        
Home | Imprint | This part of the site doesn't use cookies.