Automattic\WooCommerce\Internal\PushNotifications\Notifications
NewReviewNotification::write_meta
{@inheritDoc}
Method of the class: NewReviewNotification{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NewReviewNotification = new NewReviewNotification(); $NewReviewNotification->write_meta( $key, ?int $timestamp ): void;
- $key(string) (required)
- The meta key.
- ?int $timestamp
- .
Default:null
NewReviewNotification::write_meta() NewReviewNotification::write meta code WC 11.3.0
public function write_meta( string $key, ?int $timestamp = null ): void {
WC()->call_function( 'update_comment_meta', $this->get_resource_id(), $key, (string) ( $timestamp ?? time() ) );
}