Automattic\WooCommerce\Internal\CLI\Migrator\Core

CredentialManager::delete_credentialspublicWC 1.0

Deletes credentials from the database for a given platform.

Method of the class: CredentialManager{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CredentialManager = new CredentialManager();
$CredentialManager->delete_credentials( $platform_slug ): void;
$platform_slug(string) (required)
The slug for the platform.

CredentialManager::delete_credentials() code WC 10.7.0

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