Automattic\WooCommerce\Internal\PushNotifications\Notifications

NewOrderNotification::has_metapublicWC 1.0

{@inheritDoc}

Method of the class: NewOrderNotification{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NewOrderNotification = new NewOrderNotification();
$NewOrderNotification->has_meta( $key ): bool;
$key(string) (required)
The meta key.

NewOrderNotification::has_meta() code WC 10.9.1

public function has_meta( string $key ): bool {
	$order = WC()->call_function( 'wc_get_order', $this->get_resource_id() );
	return $order instanceof WC_Order && $order->meta_exists( $key );
}