Answer the question
In order to leave comments, you need to log in
How to fix the filter in the admin panel after adding a custom balance status?
WooCommerce version: 3.8.1
Added a custom field to stock_status through a filter:
add_filter(
'woocommerce_product_stock_status_options',
'ec_add_custom_product_stock_status_option'
);
function ec_add_custom_product_stock_status_option ($arr) {
$arr['fororder'] = __( 'Доступно для заказа', 'woocommerce' );
return $arr;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question