woocommerce_product_stock_status_options
Get stock status options.
Usage
add_filter( 'woocommerce_product_stock_status_options', 'wp_kama_woocommerce_product_stock_status_options_filter' ); /** * Function for `woocommerce_product_stock_status_options` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_product_stock_status_options_filter( $array ){ // filter... return $array; }
- $array
- -
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
woocommerce_product_stock_status_options
woocommerce/includes/wc-product-functions.php 950-957
return apply_filters( 'woocommerce_product_stock_status_options', array( 'instock' => __( 'In stock', 'woocommerce' ), 'outofstock' => __( 'Out of stock', 'woocommerce' ), 'onbackorder' => __( 'On backorder', 'woocommerce' ), ) );