Automattic\WooCommerce\Internal\CLI\Migrator\Core

CredentialManager::delete_credentialspublicWC 1.0

Deletes credentials from the database for a given platform.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$CredentialManager = new CredentialManager();
$CredentialManager->delete_credentials( $platform_slug ): void;
$platform_slug(строка) (обязательный)
The slug for the platform.

Код CredentialManager::delete_credentials() WC 11.0.1

public function delete_credentials( string $platform_slug ): void {
	$option_name = "wc_migrator_credentials_{$platform_slug}";
	delete_option( $option_name );
}