WordPress at Your Fingertips
function is not described

WC_Admin_API_Keys::remove_key() private WC 1.0

Remove key.

{} It's a method of the class: WC_Admin_API_Keys{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->remove_key( $key_id );
$key_id(int) (required)
API Key ID.

Code of WC_Admin_API_Keys::remove_key() WC 5.9.0

private function remove_key( $key_id ) {
	global $wpdb;

	$delete = $wpdb->delete( $wpdb->prefix . 'woocommerce_api_keys', array( 'key_id' => $key_id ), array( '%d' ) );

	return $delete;
}