woocommerce_product_stock_status_options filter-hookWC 3.0.0

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

wc_get_product_stock_status_options()
woocommerce_product_stock_status_options
woocommerce/includes/wc-product-functions.php 871-878
return apply_filters(
	'woocommerce_product_stock_status_options',
	array(
		'instock'     => __( 'In stock', 'woocommerce' ),
		'outofstock'  => __( 'Out of stock', 'woocommerce' ),
		'onbackorder' => __( 'On backorder', 'woocommerce' ),
	)
);

Where the hook is used in WooCommerce

Usage not found.