WC_Webhook::get_date_created()
Get webhook created date.
Method of the class: WC_Webhook{}
No Hooks.
Return
WC_DateTime|null
. Object if the date is set or null if there is no date.
Usage
$WC_Webhook = new WC_Webhook(); $WC_Webhook->get_date_created( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
Changelog
Since 3.2.0 | Introduced. |
WC_Webhook::get_date_created() WC Webhook::get date created code WC 9.6.1
public function get_date_created( $context = 'view' ) { return $this->get_prop( 'date_created', $context ); }