WC_Webhook::get_new_delivery_id()

Generate a new unique hash as a delivery id based on current time and wehbook id.


Description Description

Return the hash for inclusion in the webhook request.


Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-webhook.php

	public function get_new_delivery_id() {
		// Since we no longer use comments to store delivery logs, we generate a unique hash instead based on current time and webhook ID.
		return wp_hash( $this->get_id() . strtotime( 'now' ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.