WC_Webhook_Data_Store::get_count_webhooks_by_status()

Get total webhook counts by status.


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/data-stores/class-wc-webhook-data-store.php

	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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.