Completed
Push — master ( fc6097...930cc3 )
by Mike
08:01
created

wc-webhook-functions.php ➔ wc_webhook_generate_secret()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 4
eloc 8
c 2
b 0
f 0
nc 5
nop 2
dl 0
loc 15
rs 9.2
1
<?php
2
/**
3
 * WooCommerce Webhook functions
4
 *
5
 * @author   WooThemes
6
 * @category Core
7
 * @package  WooCommerce/Functions
8
 * @version  2.3.0
9
 */
10
11
if ( ! defined( 'ABSPATH' ) ) {
12
	exit; // Exit if accessed directly
13
}
14
15
/**
16
 * Get Webhook statuses.
17
 *
18
 * @since  2.3.0
19
 * @return array
20
 */
21
function wc_get_webhook_statuses() {
22
	return apply_filters( 'woocommerce_webhook_statuses', array(
23
		'active'   => __( 'Active', 'woocommerce' ),
24
		'paused'   => __( 'Paused', 'woocommerce' ),
25
		'disabled' => __( 'Disabled', 'woocommerce' ),
26
	) );
27
}
28