Abstract_API_Key_Api::load_api_key( TECEvent_AutomatorZapierarray $api_key, string $consumer_secret )

Load a specific api_key into the API.


Parameters

$api_key

(<span class="TECEvent_AutomatorZapierarrayTECEvent_AutomatorZapierarray<string|">TECEvent_AutomatorZapierstring>) (Required) An api_key with the fields to access the API.

$consumer_secret

(string) (Required) An optional consumer secret used to verify an API Key pair.


Top ↑

Return

(bool|WP_Error) Return true if loaded or WP_Error otherwise.


Top ↑

Source

File: src/Common/Event_Automator/Zapier/Abstract_API_Key_Api.php

	public function load_api_key( array $api_key, $consumer_secret ) {
		$valid = $this->is_valid_api_key( $api_key, $consumer_secret );
		if ( is_wp_error( $valid ) ) {
			return $valid;
		}

		$this->init_api_key( $api_key );

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.