woocommerce_product_stock_status_options
Get stock status options.
Использование
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
- -
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
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' ), ) );