Automattic\WooCommerce\Admin\Marketing
MarketingChannelInterface::get_errors_count()
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() MarketingChannelInterface::get errors count code WC 9.8.2
public function get_errors_count(): int;