woocommerce_backordered_item_meta_name filter-hookWC 1.0

Handle qty if set.

Usage

add_filter( 'woocommerce_backordered_item_meta_name', 'wp_kama_woocommerce_backordered_item_meta_name_filter', 10, 2 );

/**
 * Function for `woocommerce_backordered_item_meta_name` filter-hook.
 * 
 * @param  $__   
 * @param  $item 
 *
 * @return 
 */
function wp_kama_woocommerce_backordered_item_meta_name_filter( $__, $item ){

	// filter...
	return $__;
}
$__
-
$item
-

Where the hook is called

WC_Abstract_Legacy_Order::update_product()
woocommerce_backordered_item_meta_name
WC_Order_Item_Product::set_backorder_meta()
woocommerce_backordered_item_meta_name
woocommerce/includes/legacy/abstract-wc-legacy-order.php 164
$item->add_meta_data( apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $item ), $args['qty'] - max( 0, $product->get_stock_quantity() ), true );
woocommerce/includes/class-wc-order-item-product.php 212
$this->add_meta_data( apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $this ), $this->get_quantity() - max( 0, $product->get_stock_quantity() ), true );

Where the hook is used in WooCommerce

Usage not found.