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

WP_Site_Health::check_wp_version_check_exists() public WP 5.2.0

Test if wp_version_check is blocked.

It's possible to block updates with the wp_version_check filter, but this can't be checked during an Ajax call, as the filter is never introduced then.

This filter overrides a standard page request if it's made by an admin through the Ajax call with the right query argument to check for this.

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

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Site_Health = new WP_Site_Health();
$WP_Site_Health->check_wp_version_check_exists();

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

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

Код WP Site Health::check wp version check exists: wp-admin/includes/class-wp-site-health.php WP 5.5.1

<?php
public function check_wp_version_check_exists() {
	if ( ! is_admin() || ! is_user_logged_in() || ! current_user_can( 'update_core' ) || ! isset( $_GET['health-check-test-wp_version_check'] ) ) {
		return;
	}

	echo ( has_filter( 'wp_version_check', 'wp_version_check' ) ? 'yes' : 'no' );

	die();
}