Yoast\WP\SEO\Config
Migration_Status::get_error()
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() Migration Status::get error Yoast 25.0
public function get_error( $name ) { $migration_status = $this->get_migration_status( $name ); if ( ! isset( $migration_status['error'] ) ) { return false; } return $migration_status['error']; }