WC_Webhook_Data_Store::get_count_webhooks_by_status()
Get total webhook counts by status.
Метод класса: WC_Webhook_Data_Store{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Webhook_Data_Store = new WC_Webhook_Data_Store(); $WC_Webhook_Data_Store->get_count_webhooks_by_status();
Код WC_Webhook_Data_Store::get_count_webhooks_by_status() WC Webhook Data Store::get count webhooks by status WC 8.7.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; }