Template_Modifications::get_api_key_fields( TECEvent_AutomatorZapierApi $api, string $consumer_id, TECEvent_AutomatorZapierarray $api_key, TECEvent_AutomatorZapierarray $users, string $type = 'new' )

Get the API Key fields.


Parameters

$api

(TECEvent_AutomatorZapierApi) (Required) An instance of an API handler.

$consumer_id

(string) (Required) The unique id used to save the API Key data.

$api_key

(<span class="TECEvent_AutomatorZapierarrayTECEvent_AutomatorZapierarray<string|">TECEvent_AutomatorZapiermixed>) (Required) The API Key data.

$users

(<span class="TECEvent_AutomatorZapierarrayTECEvent_AutomatorZapierarray<string|">TECEvent_AutomatorZapiermixed>) (Required) An array of WordPress users to create an API Key for.

$type

(string) (Optional) A string of the type of fields to load ( new and generated ).

Default value: 'new'


Top ↑

Return

(string) The Zapier API Keys admin fields html.


Top ↑

Source

File: src/Event_Automator/Zapier/Template_Modifications.php

	public function get_api_key_fields( Api $api, $consumer_id, $api_key, $users, $type = 'new' ) {
		return $this->admin_template->template( 'zapier/api/list/fields-' . $type, [
			'api'         => $api,
			'api_key'     => $api_key,
			'consumer_id' => $consumer_id,
			'users'       => $users,
			'url'         => $this->url,
		] );
	}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.