woocommerce_purchase_order_item_types filter-hookWC 1.0

Usage

add_filter( 'woocommerce_purchase_order_item_types', 'wp_kama_woocommerce_purchase_order_item_types_filter' );

/**
 * Function for `woocommerce_purchase_order_item_types` filter-hook.
 * 
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_purchase_order_item_types_filter( $string ){

	// filter...
	return $string;
}
$string
-

Where the hook is called

Totals::render_order_details_table_items()
woocommerce_purchase_order_item_types
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Totals.php 103
$order->get_items( apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) ),
woocommerce/templates/order/order-details.php 28
$order_items           = $order->get_items( apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) );

Where the hook is used in WooCommerce

Usage not found.