wc_get_webhook_statuses

Get Webhook statuses.

Description

(array) wc_get_webhook_statuses(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_webhook_statuses' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-webhook-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_webhook_statuses(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-webhook-functions.php  
  1. function wc_get_webhook_statuses() { 
  2. return apply_filters( 'woocommerce_webhook_statuses', array( 
  3. 'active' => __( 'Active', woocommerce ),  
  4. 'paused' => __( 'Paused', woocommerce ),  
  5. 'disabled' => __( 'Disabled', woocommerce ),  
  6. ) );