Automattic\WooCommerce\Internal\CLI\Migrator\Core

CredentialManager::has_credentialspublicWC 1.0

Checks if credentials exist for a given platform.

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

Хуков нет.

Возвращает

true|false. True if credentials exist, false otherwise.

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

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

Код CredentialManager::has_credentials() WC 11.0.1

public function has_credentials( string $platform_slug ): bool {
	$credentials = $this->get_credentials( $platform_slug );

	return ! empty( $credentials );
}