WordPress at Your Fingertips
function is not described

WC_Webhook_Data_Store::get_count_webhooks_by_status() public WC 1.0

Get total webhook counts by status.

{} It's a method of the class: WC_Webhook_Data_Store{}

No Hooks.

Return

Array.

Usage

$WC_Webhook_Data_Store = new WC_Webhook_Data_Store();
$WC_Webhook_Data_Store->get_count_webhooks_by_status();

Code of WC_Webhook_Data_Store::get_count_webhooks_by_status() WC 5.6.0

public function get_count_webhooks_by_status() {
	$statuses = array_keys( wc_get_webhook_statuses() );
	$counts   = array();

	foreach ( $statuses as $status ) {
		$counts[ $status ] = $this->get_webhook_count( $status );
	}

	return $counts;
}