Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_API_Authentication::is_consumer_secret_valid( string $keys_consumer_secret, string $consumer_secret )
Check if the consumer secret provided for the given user is valid
Description Description
Parameters Parameters
- $keys_consumer_secret
-
(Required)
- $consumer_secret
-
(Required)
Return Return
(bool)
Source Source
File: includes/legacy/api/v2/class-wc-api-authentication.php
private function is_consumer_secret_valid( $keys_consumer_secret, $consumer_secret ) { return hash_equals( $keys_consumer_secret, $consumer_secret ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |