WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Site_Health::get_test_loopback_requests() public WP 5.2.0

Test if loopbacks work as expected.

A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, or when editing a plugin or theme. This has shown itself to be a recurring issue, as code can very easily break this interaction.

{} Это метод класса: WP_Site_Health{}

Хуков нет.


Массив. The test results.


$WP_Site_Health = new WP_Site_Health();

Список изменений

С версии 5.2.0 Введена.

Код WP_Site_Health::get_test_loopback_requests() WP 5.8.3

public function get_test_loopback_requests() {
	$result = array(
		'label'       => __( 'Your site can perform loopback requests' ),
		'status'      => 'good',
		'badge'       => array(
			'label' => __( 'Performance' ),
			'color' => 'blue',
		'description' => sprintf(
			__( 'Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.' )
		'actions'     => '',
		'test'        => 'loopback_requests',

	$check_loopback = $this->can_perform_loopback();

	$result['status'] = $check_loopback->status;

	if ( 'good' !== $result['status'] ) {
		$result['label'] = __( 'Your site could not complete a loopback request' );

		$result['description'] .= sprintf(

	return $result;