Abstract_API_Key_Api::delete_api_key_by_id( string $consumer_id )

Delete an api_key by ID.


Parameters

$consumer_id

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


Top ↑

Return

(bool) Whether the api_key has been deleted and the access access_token revoked.


Top ↑

Source

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

	public function delete_api_key_by_id( $consumer_id ) {
		delete_option( $this->single_api_key_prefix . $consumer_id );

		$this->delete_from_list_of_api_keys( $consumer_id );

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.