Automattic\WooCommerce\Internal\PushNotifications\Notifications
NewOrderNotification::has_meta
{@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() 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 );
}