28 lines
539 B
PHP
28 lines
539 B
PHP
<?php
|
|
/**
|
|
* WooCommerce Webhook functions
|
|
*
|
|
* @author Automattic
|
|
* @category Core
|
|
* @package WooCommerce/Functions
|
|
* @version 2.3.0
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
/**
|
|
* Get Webhook statuses.
|
|
*
|
|
* @since 2.3.0
|
|
* @return array
|
|
*/
|
|
function wc_get_webhook_statuses() {
|
|
return apply_filters( 'woocommerce_webhook_statuses', array(
|
|
'active' => __( 'Active', 'woocommerce' ),
|
|
'paused' => __( 'Paused', 'woocommerce' ),
|
|
'disabled' => __( 'Disabled', 'woocommerce' ),
|
|
) );
|
|
}
|