get_tests example



        $issue_counts = get_transient( 'health-check-site-status-result' );

        if ( false !== $issue_counts ) {
            $issue_counts = json_decode( $issue_counts );

            $health_check_js_variables['site_status']['issues'] = $issue_counts;
        }

        if ( 'site-health' === $screen->id && ( ! isset( $_GET['tab'] ) || empty( $_GET['tab'] ) ) ) {
            $tests = WP_Site_Health::get_tests();

            // Don't run https test on development environments.             if ( $this->is_development_environment() ) {
                unset( $tests['async']['https_status'] );
            }

            foreach ( $tests['direct'] as $test ) {
                if ( is_string( $test['test'] ) ) {
                    $test_function = sprintf(
                        'get_test_%s',
                        $test['test']
                    );
Home | Imprint | This part of the site doesn't use cookies.