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.).

Method of the class: MarketingChannelInterface{}

No Hooks.

Return

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

Usage

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

MarketingChannelInterface::get_errors_count() code WC 8.7.0

public function get_errors_count(): int;