Abstract_API_Key_Api::get_api_key_by_id( string $consumer_id )
Get a Single API Key by id.
Contents
Parameters
- $consumer_id
-
(string) (Required) The id of the single api_key.
Return
(TECEvent_AutomatorZapierarray<string|TECEvent_AutomatorZapierstring>) $api_key The api_key data or empty array if no api_key.
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, [] );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |