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

wp_get_theme_error() WP 5.2.0

Gets the error that was recorded for a paused theme.

Хуков нет.

Возвращает

Массив/false. Array of error information as it was returned by error_get_last(), or false if none was recorded.

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

wp_get_theme_error( $theme );
$theme(строка) (обязательный)
Path to the theme directory relative to the themes directory.

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

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

Код wp_get_theme_error() WP 5.5.1

wp-admin/includes/theme.php
<?php
function wp_get_theme_error( $theme ) {
	if ( ! isset( $GLOBALS['_paused_themes'] ) ) {
		return false;
	}

	if ( ! array_key_exists( $theme, $GLOBALS['_paused_themes'] ) ) {
		return false;
	}

	return $GLOBALS['_paused_themes'][ $theme ];
}