Yoast\WP\SEO\Config
Migration_Status::lock_migration()
Locks the migration status.
Метод класса: Migration_Status{}
Хуков нет.
Возвращает
true|false
. Whether or not the migration was succesfully locked.
Использование
$Migration_Status = new Migration_Status(); $Migration_Status->lock_migration( $name );
- $name(строка) (обязательный)
- The name of the migration.
Код Migration_Status::lock_migration() Migration Status::lock migration Yoast 24.0
public function lock_migration( $name ) { $migration_status = $this->get_migration_status( $name ); $migration_status['lock'] = \strtotime( 'now' ); return $this->set_migration_status( $name, $migration_status ); }