wc_get_product_stock_status_options

Get stock status options.

Description

(array) wc_get_product_stock_status_options(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_product_stock_status_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_stock_status_options(); 
  7.  

Defined (1)

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

/includes/wc-product-functions.php  
  1. function wc_get_product_stock_status_options() { 
  2. return array( 
  3. 'instock' => __( 'In stock', woocommerce ),  
  4. 'outofstock' => __( 'Out of stock', woocommerce ),  
  5. );