wc_get_product_stock_status_options()
Get stock status options.
Hooks from the function
Return
Array
.
Usage
wc_get_product_stock_status_options();
Changelog
Since 3.0.0 | Introduced. |
wc_get_product_stock_status_options() wc get product stock status options code WC 9.2.3
function wc_get_product_stock_status_options() { return apply_filters( 'woocommerce_product_stock_status_options', array( 'instock' => __( 'In stock', 'woocommerce' ), 'outofstock' => __( 'Out of stock', 'woocommerce' ), 'onbackorder' => __( 'On backorder', 'woocommerce' ), ) ); }