WP_Site_Health::get_test_rest_availability

Advertisement

Summery Summery

Test if the REST API is accessible.

Syntax Syntax

WP_Site_Health::get_test_rest_availability()

Description Description

Various security measures may block the REST API from working, or it may have been disabled in general. This is required for the new block editor to work, so we explicitly test for this.

Return Return

(array) The test results.

Source Source

File: wp-admin/includes/class-wp-site-health.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.