WordPress at a glance
function is not described

WC_API_Authentication::is_consumer_secret_valid() private WC 2.1

Check if the consumer secret provided for the given user is valid

{} It's a method of the class: WC_API_Authentication{}

No Hooks.

Return

true/false.

Usage

// private - for code of main (parent) class only
$result = $this->is_consumer_secret_valid( $keys_consumer_secret, $consumer_secret );
$keys_consumer_secret(string) (required)
-
$consumer_secret(string) (required)
-

Changelog

Since 2.1 Introduced.

Code of WC_API_Authentication::is_consumer_secret_valid() WC 5.0.0

<?php
private function is_consumer_secret_valid( $keys_consumer_secret, $consumer_secret ) {
	return hash_equals( $keys_consumer_secret, $consumer_secret );
}