woocommerce_get_order_item_classname

woocommerce_get_order_item_classname

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_get_order_item_classname') is found 1 times:

  • /includes/class-wc-order-factory.php line 190
    					$classname = 'WC_Order_Item_Tax';
    					break;
    			}
    
    			$classname = apply_filters( 'woocommerce_get_order_item_classname', $classname, $item_type, $id );
    
    			if ( $classname && class_exists( $classname ) ) {
    				try {
    					return new $classname( $id );
    				} catch ( Exception $e ) {
    					return false;