(hook_prefix)stock_quantity filter-hookWC 1.0

Inherit value from parent.

Usage

add_filter( '(hook_prefix)stock_quantity', 'wp_kama_hook_prefixstock_quantity_filter', 10, 2 );

/**
 * Function for `(hook_prefix)stock_quantity` filter-hook.
 * 
 * @param  $parent_data_stock_quantity 
 * @param  $that                       
 *
 * @return 
 */
function wp_kama_hook_prefixstock_quantity_filter( $parent_data_stock_quantity, $that ){

	// filter...
	return $parent_data_stock_quantity;
}
$parent_data_stock_quantity
-
$that
-

Where the hook is called

WC_Product_Variation::get_stock_quantity()
(hook_prefix)stock_quantity
woocommerce/includes/class-wc-product-variation.php 339
$value = apply_filters( $this->get_hook_prefix() . 'stock_quantity', $this->parent_data['stock_quantity'], $this );

Where the hook is used in WooCommerce

Usage not found.