Automattic\WooCommerce\Admin\Marketing

MarketingChannelInterface::get_errors_count()publicWC 1.0

Returns the number of channel issues/errors (e.g. account-related errors, product synchronization issues, etc.).

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

Хуков нет.

Возвращает

int. The number of issues to resolve, or 0 if there are no issues with the channel.

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

$MarketingChannelInterface = new MarketingChannelInterface();
$MarketingChannelInterface->get_errors_count(): int;

Код MarketingChannelInterface::get_errors_count() WC 8.7.0

public function get_errors_count(): int;