Automattic\WooCommerce\Internal\PushNotifications\Notifications
StockNotification::has_meta
{@inheritDoc}
Method of the class: StockNotification{}
No Hooks.
Returns
null. Nothing (null).
Usage
$StockNotification = new StockNotification(); $StockNotification->has_meta( $key ): bool;
- $key(string) (required)
- The meta key.
StockNotification::has_meta() StockNotification::has meta code WC 10.9.4
public function has_meta( string $key ): bool {
$product = WC()->call_function( 'wc_get_product', $this->get_resource_id() );
return $product instanceof WC_Product && $product->meta_exists( $key . '_' . $this->event_type );
}