Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::set_onboarding_lock
Lock the onboarding.
This will save a flag in the database to indicate that onboarding is locked. This is used to prevent certain onboarding actions to happen while others have not finished. This is especially important for actions that modify the account (initializing it, deleting it, etc.) These actions tend to be longer-running and we want to have backstops in place to prevent race conditions.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->set_onboarding_lock(): void;
WooPaymentsService::set_onboarding_lock() WooPaymentsService::set onboarding lock code WC 10.8.1
private function set_onboarding_lock(): void {
$now = $this->proxy->call_function( 'time' );
$this->proxy->call_function( 'update_option', self::NOX_ONBOARDING_LOCKED_KEY, $now, false );
}