Yoast\WP\SEO\Config

Migration_Status::get_error()publicYoast 1.0

Gets the error of a given migration if it exists.

Метод класса: Migration_Status{}

Хуков нет.

Возвращает

true|false|Массив. False if there is no error, otherwise the error.

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

$Migration_Status = new Migration_Status();
$Migration_Status->get_error( $name );
$name(строка) (обязательный)
The name of the migration.

Код Migration_Status::get_error() Yoast 22.4

public function get_error( $name ) {
	$migration_status = $this->get_migration_status( $name );

	if ( ! isset( $migration_status['error'] ) ) {
		return false;
	}

	return $migration_status['error'];
}