Automattic\WooCommerce\Internal\PushNotifications\Notifications

NewOrderNotification::delete_meta │ public │ WC 1.0

{@inheritDoc}

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

Хуков нет.

Возвращает

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

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

$NewOrderNotification = new NewOrderNotification();
$NewOrderNotification->delete_meta( $key ): void;
$key(строка) (обязательный)
The meta key.

Код NewOrderNotification::delete_meta() WC 11.3.0

public function delete_meta( string $key ): void {
	$order = WC()->call_function( 'wc_get_order', $this->get_resource_id() );

	if ( $order instanceof WC_Order ) {
		$order->delete_meta_data( $key );
		$order->save_meta_data();
	}
}