WC_Webhook::set_date_created()publicWC 3.2.0

Set webhook created date.

Method of the class: WC_Webhook{}

No Hooks.


null. Nothing (null).


$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_date_created( $date );
UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
Default: null


Since 3.2.0 Introduced.

WC_Webhook::set_date_created() code WC 9.0.1

public function set_date_created( $date = null ) {
	$this->set_date_prop( 'date_created', $date );