WordPress at Your Fingertips
function is not described

WC_Admin_Webhooks_Table_List::get_status_label() private WC 1.0

Get the status label for webhooks.

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

No Hooks.

Return

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_status_label( $status_name, $amount );
$status_name(string) (required)
Status name.
$amount(int) (required)
Amount of webhooks.

Code of WC_Admin_Webhooks_Table_List::get_status_label() WC 5.9.0

private function get_status_label( $status_name, $amount ) {
	$statuses = wc_get_webhook_statuses();

	if ( isset( $statuses[ $status_name ] ) ) {
		return array(
			'singular' => sprintf( '%s <span class="count">(%s)</span>', esc_html( $statuses[ $status_name ] ), $amount ),
			'plural'   => sprintf( '%s <span class="count">(%s)</span>', esc_html( $statuses[ $status_name ] ), $amount ),
			'context'  => '',
			'domain'   => 'woocommerce',
		);
	}

	return array(
		'singular' => sprintf( '%s <span class="count">(%s)</span>', esc_html( $status_name ), $amount ),
		'plural'   => sprintf( '%s <span class="count">(%s)</span>', esc_html( $status_name ), $amount ),
		'context'  => '',
		'domain'   => 'woocommerce',
	);
}