WordPress at a glance
функция не описана

WP_Recovery_Mode::store_error() protected WP 5.2.0

Stores the given error so that the extension causing it is paused.

It's a method of the class: WP_Recovery_Mode{}

Хуков нет.

Возвращает

true/false. True if the error was stored successfully, false otherwise.

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

// protected - for code of main (parent) or child class
$result = $this->store_error( $error );
$error(array) (required)
Error that was triggered.

Changelog

Since 5.2.0 Introduced.

Код WP_Recovery_Mode::store_error() WP 5.5.1

<?php
protected function store_error( $error ) {
	$extension = $this->get_extension_for_error( $error );

	if ( ! $extension ) {
		return false;
	}

	switch ( $extension['type'] ) {
		case 'plugin':
			return wp_paused_plugins()->set( $extension['slug'], $error );
		case 'theme':
			return wp_paused_themes()->set( $extension['slug'], $error );
		default:
			return false;
	}
}