feat: wc_product_stock_status_options filter added for stock status options for variable product

This commit is contained in:
nishitlangaliya 2019-02-23 11:10:22 +05:30
parent 8f2efbfef3
commit 53b5be7e83
1 changed files with 2 additions and 2 deletions

View File

@ -848,11 +848,11 @@ function wc_get_product_tax_class_options() {
* @return array
*/
function wc_get_product_stock_status_options() {
return array(
return apply_filters( 'wc_product_stock_status_options', array(
'instock' => __( 'In stock', 'woocommerce' ),
'outofstock' => __( 'Out of stock', 'woocommerce' ),
'onbackorder' => __( 'On backorder', 'woocommerce' ),
);
) );
}
/**