Abstract_API_Key_Api::get_api_key_by_id( string $consumer_id )

Get a Single API Key by id.


Parameters

$consumer_id

(string) (Required) The id of the single api_key.


Top ↑

Return

(TECEvent_AutomatorZapierarray<string|TECEvent_AutomatorZapierstring>) $api_key The api_key data or empty array if no api_key.


Top ↑

Source

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

	public function get_api_key_by_id( $consumer_id ) {
		return get_option( $this->single_api_key_prefix . $consumer_id, [] );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.