Yoast\WP\SEO\Config
Migration_Status::set_success()
Updates the migration version to the latest version.
Метод класса: Migration_Status{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Migration_Status = new Migration_Status(); $Migration_Status->set_success( $name, $version );
- $name(строка) (обязательный)
- The name of the migration.
- $version(строка)
- The current version.
По умолчанию: \WPSEO_VERSION
Код Migration_Status::set_success() Migration Status::set success Yoast 23.6
public function set_success( $name, $version = \WPSEO_VERSION ) { $migration_status = $this->get_migration_status( $name ); unset( $migration_status['lock'] ); unset( $migration_status['error'] ); $migration_status['version'] = $version; $this->set_migration_status( $name, $migration_status ); }