Automattic\WooCommerce\Internal\PushNotifications\Notifications

StockNotification::has_meta │ public │ WC 1.0

{@inheritDoc}

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

Хуков нет.

Возвращает

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

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

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

Код StockNotification::has_meta() WC 11.3.0

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( $this->meta_key( $key ) );
}