Automattic\WooCommerce\Internal\PushNotifications\Notifications

NewReviewNotification::write_meta │ public │ WC 1.0

{@inheritDoc}

Метод класса: NewReviewNotification{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$NewReviewNotification = new NewReviewNotification();
$NewReviewNotification->write_meta( $key, ?int $timestamp ): void;
$key(строка) (обязательный)
The meta key.
?int $timestamp
.
По умолчанию: null

Код NewReviewNotification::write_meta() 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() ) );
}