wc_get_product_backorder_options

Get backorder options.

Description

(array) wc_get_product_backorder_options(); 

Returns (array)


Usage

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

Defined (1)

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

/includes/wc-product-functions.php  
  1. function wc_get_product_backorder_options() { 
  2. return array( 
  3. 'no' => __( 'Do not allow', woocommerce ),  
  4. 'notify' => __( 'Allow, but notify customer', woocommerce ),  
  5. 'yes' => __( 'Allow', woocommerce ),  
  6. );